diff --git a/program/views.py b/program/views.py index 2b14a32726862c9b0b04241cca6fd797ebf7b936..e01476a3197004ea639a5717da79fa9c9a4b526a 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.", ),