From 33345a12aad22e142061a0ed51a345ee3c7b99aa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 13 Oct 2024 21:15:58 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/Tavily.Models.SearchRequest.g.cs | 18 +++++++++++++++--- .../Tavily.Models.SearchResponse.g.cs | 18 +++++++++++++++--- .../Generated/Tavily.Models.SearchResult.g.cs | 18 +++++++++++++++--- 3 files changed, 45 insertions(+), 9 deletions(-) diff --git a/src/libs/Tavily/Generated/Tavily.Models.SearchRequest.g.cs b/src/libs/Tavily/Generated/Tavily.Models.SearchRequest.g.cs index 6038069..04ab8c4 100644 --- a/src/libs/Tavily/Generated/Tavily.Models.SearchRequest.g.cs +++ b/src/libs/Tavily/Generated/Tavily.Models.SearchRequest.g.cs @@ -79,6 +79,9 @@ public sealed partial class SearchRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// public string ToJson( global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { @@ -88,10 +91,13 @@ public string ToJson( jsonSerializerContext); } - #if NET6_0_OR_GREATER + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER [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.")] [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.")] - #endif +#endif public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -100,6 +106,9 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// public static global::Tavily.SearchRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) @@ -110,7 +119,10 @@ public string ToJson( jsonSerializerContext) as global::Tavily.SearchRequest; } -#if NET6_0_OR_GREATER + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER [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.")] [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.")] #endif diff --git a/src/libs/Tavily/Generated/Tavily.Models.SearchResponse.g.cs b/src/libs/Tavily/Generated/Tavily.Models.SearchResponse.g.cs index 74c6ac6..4a6154e 100644 --- a/src/libs/Tavily/Generated/Tavily.Models.SearchResponse.g.cs +++ b/src/libs/Tavily/Generated/Tavily.Models.SearchResponse.g.cs @@ -54,6 +54,9 @@ public sealed partial class SearchResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// public string ToJson( global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { @@ -63,10 +66,13 @@ public string ToJson( jsonSerializerContext); } - #if NET6_0_OR_GREATER + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER [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.")] [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.")] - #endif +#endif public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -75,6 +81,9 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// public static global::Tavily.SearchResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) @@ -85,7 +94,10 @@ public string ToJson( jsonSerializerContext) as global::Tavily.SearchResponse; } -#if NET6_0_OR_GREATER + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER [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.")] [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.")] #endif diff --git a/src/libs/Tavily/Generated/Tavily.Models.SearchResult.g.cs b/src/libs/Tavily/Generated/Tavily.Models.SearchResult.g.cs index f6ac50a..7cb5734 100644 --- a/src/libs/Tavily/Generated/Tavily.Models.SearchResult.g.cs +++ b/src/libs/Tavily/Generated/Tavily.Models.SearchResult.g.cs @@ -49,6 +49,9 @@ public sealed partial class SearchResult public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// public string ToJson( global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { @@ -58,10 +61,13 @@ public string ToJson( jsonSerializerContext); } - #if NET6_0_OR_GREATER + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER [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.")] [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.")] - #endif +#endif public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -70,6 +76,9 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// public static global::Tavily.SearchResult? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) @@ -80,7 +89,10 @@ public string ToJson( jsonSerializerContext) as global::Tavily.SearchResult; } -#if NET6_0_OR_GREATER + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER [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.")] [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.")] #endif