From bd3f6e3975dc860e8ab686fb56a0b5076e793baa Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Wed, 19 Mar 2025 18:57:25 -0400 Subject: [PATCH] style: tweak property names and line length --- program/views.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/program/views.py b/program/views.py index 2b14a32..e01476a 100644 --- a/program/views.py +++ b/program/views.py @@ -620,7 +620,7 @@ ImageCreateRequest = { "description": "The image file", "type": "object", }, - "alt_text": { + "altText": { "description": "Alternate text for the image.", "type": "string", }, @@ -632,11 +632,11 @@ ImageCreateRequest = { "description": "The credits for the image.", "type": "string", }, - "licensing.is_use_explicitly_granted_by_author": { + "licensing.isUseExplicitlyGrantedByAuthor": { "description": "`True` if use is explicitly granted by author.", "type": "boolean", }, - "licensing.license_id": { + "licensing.licenseId": { "description": "The `License` ID for the image.", "type": "integer", }, @@ -649,7 +649,7 @@ ImageUpdateRequest = { "application/json": { "type": "object", "properties": { - "alt_text": { + "altText": { "description": "Alternate text for the image.", "type": "string", }, @@ -661,11 +661,11 @@ ImageUpdateRequest = { "description": "The credits for the image.", "type": "string", }, - "licensing.is_use_explicitly_granted_by_author": { + "licensing.isUseExplicitlyGrantedByAuthor": { "description": "`True` if use is explicitly granted by author.", "type": "boolean", }, - "licensing.license_id": { + "licensing.licenseId": { "description": "The `License` ID for the image.", "type": "integer", }, @@ -679,13 +679,15 @@ ImageUpdateRequest = { destroy=extend_schema(summary="Delete an existing image."), list=extend_schema(summary="List all images."), partial_update=extend_schema( - description="Only `alt_text`, `ppoi`, `licensing.credits`, `licensing.is_use_explicitly_granted_by_author` and `licensing.license_id` can be updated.", + description="Only `altText`, `ppoi`, `licensing.credits`, " + "`licensing.isUseExplicitlyGrantedByAuthor` and `licensing.licenseId` can be updated.", request=ImageUpdateRequest, summary="Partially update an existing image.", ), retrieve=extend_schema(summary="Retrieve a single image."), update=extend_schema( - description="Only `alt_text`, `ppoi`, `licensing.credits`, `licensing.is_use_explicitly_granted_by_author` and `licensing.license_id` can be updated.", + description="Only `altText`, `ppoi`, `licensing.credits`, " + "`licensing.isUseExplicitlyGrantedByAuthor` and `licensing.licenseId` can be updated.", request=ImageUpdateRequest, summary="Update an existing image.", ), -- GitLab