Skip to content

Commit e23040b

Browse files
Merge pull request #103 from apivideo/update-response-example
Add missing lines to response example
2 parents d9d843f + 2cad02f commit e23040b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

api/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ paths:
614614
title: Maths video
615615
description: An amazing video explaining the string theory
616616
language: en
617+
languageOrigin: api
617618
public: false
618619
panoramic: false
619620
tags:
@@ -1131,6 +1132,7 @@ components:
11311132
description: Returns the language of a video in [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag)
11321133
format. You can set the language during video creation via the API, otherwise
11331134
it is detected automatically.
1135+
example: en
11341136
type: string
11351137
languageOrigin:
11361138
description: |-
@@ -1141,6 +1143,7 @@ components:
11411143
enum:
11421144
- api
11431145
- auto
1146+
example: api
11441147
nullable: true
11451148
type: string
11461149
tags:

src/main/java/video/api/uploader/api/models/Video.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public Video language(String language) {
365365
* @return language
366366
**/
367367
@javax.annotation.Nullable
368-
@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.")
368+
@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.")
369369

370370
public String getLanguage() {
371371
return language;
@@ -388,7 +388,7 @@ public Video languageOrigin(LanguageOriginEnum languageOrigin) {
388388
* @return languageOrigin
389389
**/
390390
@javax.annotation.Nullable
391-
@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.")
391+
@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.")
392392

393393
public LanguageOriginEnum getLanguageOrigin() {
394394
return languageOrigin;

0 commit comments

Comments
 (0)