From bf52a8c45b78af3f5cdab77f975573662ec09be2 Mon Sep 17 00:00:00 2001 From: szekelyzol Date: Wed, 9 Oct 2024 15:31:07 +0000 Subject: [PATCH] Add nullable property --- api/openapi.yaml | 2 ++ .../java/video/api/client/api/models/VideoCreationPayload.java | 2 +- .../java/video/api/client/api/models/VideoUpdatePayload.java | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index 436a8fd..2bbb7b8 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 {