Skip to content

Commit 4b9e26c

Browse files
Merge pull request #127 from apivideo/add-nullable-to-language-parameter
Add nullable property
2 parents 21a15ad + bf52a8c commit 4b9e26c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

api/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15962,6 +15962,7 @@ components:
1596215962
- vi
1596315963
- zh
1596415964
example: fr
15965+
nullable: true
1596515966
type: string
1596615967
transcript:
1596715968
description: "Use this parameter to enable transcription. \n\n- When `true`,\
@@ -16117,6 +16118,7 @@ components:
1611716118
- vi
1611816119
- zh
1611916120
example: fr
16121+
nullable: true
1612016122
type: string
1612116123
transcript:
1612216124
description: "Use this parameter to enable transcription. \n\n- When `true`,\

src/main/java/video/api/client/api/models/VideoCreationPayload.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public static LanguageEnum fromValue(String value) {
176176
return b;
177177
}
178178
}
179-
throw new IllegalArgumentException("Unexpected value '" + value + "'");
179+
return null;
180180
}
181181

182182
public static class Adapter extends TypeAdapter<LanguageEnum> {

src/main/java/video/api/client/api/models/VideoUpdatePayload.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public static LanguageEnum fromValue(String value) {
162162
return b;
163163
}
164164
}
165-
throw new IllegalArgumentException("Unexpected value '" + value + "'");
165+
return null;
166166
}
167167

168168
public static class Adapter extends TypeAdapter<LanguageEnum> {

0 commit comments

Comments
 (0)