Skip to content

Commit b476d9a

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#5)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent 3f34c35 commit b476d9a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/libs/Sightengine/Generated/Sightengine.Polyfills.g.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ public static partial class AutoSdkPolyfills
5353
/// <summary>
5454
/// Creates a JSON request content instance.
5555
/// </summary>
56+
#if NET8_0_OR_GREATER
57+
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
58+
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
59+
#endif
5660
public static global::System.Net.Http.HttpContent CreateJsonContent<T>(
5761
T inputValue,
5862
string mediaType,
@@ -124,6 +128,10 @@ public static partial class AutoSdkPolyfills
124128
/// <summary>
125129
/// Reads JSON content into the specified type using serializer options.
126130
/// </summary>
131+
#if NET8_0_OR_GREATER
132+
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
133+
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
134+
#endif
127135
public static async global::System.Threading.Tasks.Task<T?> ReadFromJsonAsync<T>(
128136
this global::System.Net.Http.HttpContent content,
129137
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions,

0 commit comments

Comments
 (0)