From f8360633fda92ce87a19f5a3b93b006af9463ad0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 28 Sep 2026 05:08:52 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Creatomate.AutoSDKHttpResponse.g.cs | 4 +-- ...atomate.CreatomateClient.CreateRender.g.cs | 10 +++--- ...Creatomate.CreatomateClient.GetRender.g.cs | 12 +++---- ...eatomate.CreatomateClient.GetTemplate.g.cs | 12 +++---- ...tomate.CreatomateClient.ListTemplates.g.cs | 10 +++--- .../Creatomate.JsonConverters.OneOf2.g.cs | 4 +-- .../Generated/Creatomate.OneOf.2.g.cs | 32 +++++++++---------- 7 files changed, 42 insertions(+), 42 deletions(-) diff --git a/src/libs/Creatomate/Generated/Creatomate.AutoSDKHttpResponse.g.cs b/src/libs/Creatomate/Generated/Creatomate.AutoSDKHttpResponse.g.cs index 3d86985..bdd4fb1 100644 --- a/src/libs/Creatomate/Generated/Creatomate.AutoSDKHttpResponse.g.cs +++ b/src/libs/Creatomate/Generated/Creatomate.AutoSDKHttpResponse.g.cs @@ -164,9 +164,9 @@ public static class AutoSDKConditionalRequests { send = send ?? throw new global::System.ArgumentNullException(nameof(send)); requestOptions = CloneRequestOptions(requestOptions); - if (!string.IsNullOrWhiteSpace(entityTag)) + if (entityTag is { } nonEmptyEntityTag && !string.IsNullOrWhiteSpace(nonEmptyEntityTag)) { - requestOptions.Headers["If-None-Match"] = entityTag!; + requestOptions.Headers["If-None-Match"] = nonEmptyEntityTag; } try diff --git a/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.CreateRender.g.cs b/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.CreateRender.g.cs index d7ae01d..c24f8a8 100644 --- a/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.CreateRender.g.cs +++ b/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.CreateRender.g.cs @@ -184,7 +184,7 @@ partial void ProcessCreateRenderResponseContent( pathTemplate: "\"/renders\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -218,7 +218,7 @@ partial void ProcessCreateRenderResponseContent( pathTemplate: "\"/renders\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -259,7 +259,7 @@ partial void ProcessCreateRenderResponseContent( pathTemplate: "\"/renders\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ partial void ProcessCreateRenderResponseContent( pathTemplate: "\"/renders\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessCreateRenderResponseContent( pathTemplate: "\"/renders\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.GetRender.g.cs b/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.GetRender.g.cs index f429547..327f019 100644 --- a/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.GetRender.g.cs +++ b/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.GetRender.g.cs @@ -151,7 +151,7 @@ partial void ProcessGetRenderResponseContent( PrepareGetRenderRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - renderId: renderId!); + renderId: renderId); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessGetRenderResponseContent( pathTemplate: "$\"/renders/{renderId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessGetRenderResponseContent( pathTemplate: "$\"/renders/{renderId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessGetRenderResponseContent( pathTemplate: "$\"/renders/{renderId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessGetRenderResponseContent( pathTemplate: "$\"/renders/{renderId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessGetRenderResponseContent( pathTemplate: "$\"/renders/{renderId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.GetTemplate.g.cs b/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.GetTemplate.g.cs index 76f067a..b4bce17 100644 --- a/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.GetTemplate.g.cs +++ b/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.GetTemplate.g.cs @@ -151,7 +151,7 @@ partial void ProcessGetTemplateResponseContent( PrepareGetTemplateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - templateId: templateId!); + templateId: templateId); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessGetTemplateResponseContent( pathTemplate: "$\"/templates/{templateId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessGetTemplateResponseContent( pathTemplate: "$\"/templates/{templateId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessGetTemplateResponseContent( pathTemplate: "$\"/templates/{templateId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessGetTemplateResponseContent( pathTemplate: "$\"/templates/{templateId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessGetTemplateResponseContent( pathTemplate: "$\"/templates/{templateId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.ListTemplates.g.cs b/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.ListTemplates.g.cs index 24e5d72..bc67d9e 100644 --- a/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.ListTemplates.g.cs +++ b/src/libs/Creatomate/Generated/Creatomate.CreatomateClient.ListTemplates.g.cs @@ -164,7 +164,7 @@ partial void ProcessListTemplatesResponseContent( pathTemplate: "\"/templates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -198,7 +198,7 @@ partial void ProcessListTemplatesResponseContent( pathTemplate: "\"/templates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -239,7 +239,7 @@ partial void ProcessListTemplatesResponseContent( pathTemplate: "\"/templates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -287,7 +287,7 @@ partial void ProcessListTemplatesResponseContent( pathTemplate: "\"/templates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -309,7 +309,7 @@ partial void ProcessListTemplatesResponseContent( pathTemplate: "\"/templates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Creatomate/Generated/Creatomate.JsonConverters.OneOf2.g.cs b/src/libs/Creatomate/Generated/Creatomate.JsonConverters.OneOf2.g.cs index 7caa44d..cb8dfb1 100644 --- a/src/libs/Creatomate/Generated/Creatomate.JsonConverters.OneOf2.g.cs +++ b/src/libs/Creatomate/Generated/Creatomate.JsonConverters.OneOf2.g.cs @@ -148,13 +148,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } } } diff --git a/src/libs/Creatomate/Generated/Creatomate.OneOf.2.g.cs b/src/libs/Creatomate/Generated/Creatomate.OneOf.2.g.cs index 1617c11..69d1590 100644 --- a/src/libs/Creatomate/Generated/Creatomate.OneOf.2.g.cs +++ b/src/libs/Creatomate/Generated/Creatomate.OneOf.2.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// /// @@ -176,13 +176,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } return default(TResult); @@ -202,13 +202,13 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } @@ -225,13 +225,13 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } }