diff --git a/api/openapi.yaml b/api/openapi.yaml index d6343fe..7ee5ebc 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -15962,6 +15962,7 @@ components: - vi - zh example: fr + nullable: true type: string transcript: description: "Use this parameter to enable transcription. \n\n- When `true`,\ @@ -16117,6 +16118,7 @@ components: - vi - zh example: fr + nullable: true type: string transcript: description: "Use this parameter to enable transcription. \n\n- When `true`,\ diff --git a/src/main/java/video/api/client/api/models/VideoCreationPayload.java b/src/main/java/video/api/client/api/models/VideoCreationPayload.java index 835b60f..b19be81 100644 --- a/src/main/java/video/api/client/api/models/VideoCreationPayload.java +++ b/src/main/java/video/api/client/api/models/VideoCreationPayload.java @@ -176,7 +176,7 @@ public static LanguageEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { diff --git a/src/main/java/video/api/client/api/models/VideoUpdatePayload.java b/src/main/java/video/api/client/api/models/VideoUpdatePayload.java index 347995e..ced93f8 100644 --- a/src/main/java/video/api/client/api/models/VideoUpdatePayload.java +++ b/src/main/java/video/api/client/api/models/VideoUpdatePayload.java @@ -162,7 +162,7 @@ public static LanguageEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter {