Skip to content

Commit

Permalink
Merge pull request #103 from apivideo/update-response-example
Browse files Browse the repository at this point in the history
Add missing lines to response example
  • Loading branch information
bot-api-video authored Oct 30, 2024
2 parents d9d843f + 2cad02f commit e23040b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@ paths:
title: Maths video
description: An amazing video explaining the string theory
language: en
languageOrigin: api
public: false
panoramic: false
tags:
Expand Down Expand Up @@ -1131,6 +1132,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: |-
Expand All @@ -1141,6 +1143,7 @@ components:
enum:
- api
- auto
example: api
nullable: true
type: string
tags:
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/video/api/uploader/api/models/Video.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit e23040b

Please sign in to comment.