From d0424ccef445aa4c1a8dec0c59e694f3f8a5fb87 Mon Sep 17 00:00:00 2001 From: szekelyzol Date: Tue, 29 Oct 2024 13:13:24 +0000 Subject: [PATCH] Add missing lines to response example --- api/openapi.yaml | 3 +++ src/main/java/video/api/client/api/models/Video.java | 4 ++-- .../payloads/videos/uploadWithUploadToken/responses/201.json | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index f4973fc..99fdd4b 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -6182,6 +6182,7 @@ paths: title: Maths video description: An amazing video explaining the string theory language: en + languageOrigin: api public: false panoramic: false tags: @@ -15542,6 +15543,7 @@ components: description: Returns the language of a video in [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. You can set the language during video creation via the API, otherwise it is detected automatically. + example: en type: string languageOrigin: description: |- @@ -15552,6 +15554,7 @@ components: enum: - api - auto + example: api nullable: true type: string tags: diff --git a/src/main/java/video/api/client/api/models/Video.java b/src/main/java/video/api/client/api/models/Video.java index 61ad638..d62a663 100644 --- a/src/main/java/video/api/client/api/models/Video.java +++ b/src/main/java/video/api/client/api/models/Video.java @@ -365,7 +365,7 @@ public Video language(String language) { * @return language **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Returns the language of a video in [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. You can set the language during video creation via the API, otherwise it is detected automatically.") + @ApiModelProperty(example = "en", value = "Returns the language of a video in [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. You can set the language during video creation via the API, otherwise it is detected automatically.") public String getLanguage() { return language; @@ -388,7 +388,7 @@ public Video languageOrigin(LanguageOriginEnum languageOrigin) { * @return languageOrigin **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Returns the origin of the last update on the video's `language` attribute. - `api` means that the last update was requested from the API. - `auto` means that the last update was done automatically by the API.") + @ApiModelProperty(example = "api", value = "Returns the origin of the last update on the video's `language` attribute. - `api` means that the last update was requested from the API. - `auto` means that the last update was done automatically by the API.") public LanguageOriginEnum getLanguageOrigin() { return languageOrigin; diff --git a/src/test/resources/payloads/videos/uploadWithUploadToken/responses/201.json b/src/test/resources/payloads/videos/uploadWithUploadToken/responses/201.json index 37424d1..7fa5c79 100644 --- a/src/test/resources/payloads/videos/uploadWithUploadToken/responses/201.json +++ b/src/test/resources/payloads/videos/uploadWithUploadToken/responses/201.json @@ -4,6 +4,7 @@ "title" : "Maths video", "description" : "An amazing video explaining the string theory", "language" : "en", + "languageOrigin" : "api", "public" : false, "panoramic" : false, "tags" : [ "maths", "string theory", "video" ],