Skip to content

Commit

Permalink
Add missing lines to response example
Browse files Browse the repository at this point in the history
  • Loading branch information
szekelyzol authored Oct 29, 2024
1 parent f1470b6 commit 675c8a1
Show file tree
Hide file tree
Showing 3 changed files with 6 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 @@ -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:
Expand Down Expand Up @@ -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: |-
Expand All @@ -15552,6 +15554,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/client/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
Original file line number Diff line number Diff line change
Expand Up @@ -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" ],
Expand Down

0 comments on commit 675c8a1

Please sign in to comment.