From 7435566c23541c73fd015ec4e0b0f9a1f3dbd5d1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 25 Aug 2026 01:40:53 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...ghtengine.SightengineClient.CheckText.g.cs | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/src/libs/Sightengine/Generated/Sightengine.SightengineClient.CheckText.g.cs b/src/libs/Sightengine/Generated/Sightengine.SightengineClient.CheckText.g.cs index d0447ba..029c614 100644 --- a/src/libs/Sightengine/Generated/Sightengine.SightengineClient.CheckText.g.cs +++ b/src/libs/Sightengine/Generated/Sightengine.SightengineClient.CheckText.g.cs @@ -147,12 +147,25 @@ partial void ProcessCheckTextResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/x-www-form-urlencoded"); + var __formValues = new global::System.Collections.Generic.List>(); + __formValues.Add(new global::System.Collections.Generic.KeyValuePair( + "text", + request.Text ?? string.Empty)); + __formValues.Add(new global::System.Collections.Generic.KeyValuePair( + "lang", + request.Lang ?? string.Empty)); + __formValues.Add(new global::System.Collections.Generic.KeyValuePair( + "mode", + request.Mode.ToValueString())); + if (request.OptCountries != default) + { + __formValues.Add(new global::System.Collections.Generic.KeyValuePair( + "opt_countries", + request.OptCountries ?? string.Empty)); + } + var __httpRequestContent = new global::System.Net.Http.FormUrlEncodedContent(__formValues); __httpRequest.Content = __httpRequestContent; + global::Sightengine.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, clientHeaders: Options.Headers,