Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:@coderabbitai #5

Merged
merged 1 commit into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions src/libs/Tavily/Generated/Tavily.Models.SearchRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,51 @@
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();


public string ToJson(

Check warning on line 82 in src/libs/Tavily/Generated/Tavily.Models.SearchRequest.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'SearchRequest.ToJson(JsonSerializerContext)'
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

#if NET6_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.")]

Check failure on line 93 in src/libs/Tavily/Generated/Tavily.Models.SearchRequest.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level

Check failure on line 93 in src/libs/Tavily/Generated/Tavily.Models.SearchRequest.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level
#endif
public string ToJson(

Check warning on line 95 in src/libs/Tavily/Generated/Tavily.Models.SearchRequest.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'SearchRequest.ToJson(JsonSerializerOptions?)'
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

public static global::Tavily.SearchRequest? FromJson(

Check warning on line 103 in src/libs/Tavily/Generated/Tavily.Models.SearchRequest.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'SearchRequest.FromJson(string, JsonSerializerContext)'
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Tavily.SearchRequest),
jsonSerializerContext) as global::Tavily.SearchRequest;
}

#if NET6_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.")]

Check failure on line 115 in src/libs/Tavily/Generated/Tavily.Models.SearchRequest.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level

Check failure on line 115 in src/libs/Tavily/Generated/Tavily.Models.SearchRequest.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level
#endif
public static global::Tavily.SearchRequest? FromJson(

Check warning on line 117 in src/libs/Tavily/Generated/Tavily.Models.SearchRequest.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'SearchRequest.FromJson(string, JsonSerializerOptions?)'
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Tavily.SearchRequest>(
json,
jsonSerializerOptions);
}

}
}
46 changes: 46 additions & 0 deletions src/libs/Tavily/Generated/Tavily.Models.SearchResponse.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,51 @@
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();


public string ToJson(

Check warning on line 57 in src/libs/Tavily/Generated/Tavily.Models.SearchResponse.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'SearchResponse.ToJson(JsonSerializerContext)'
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

#if NET6_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.")]

Check failure on line 68 in src/libs/Tavily/Generated/Tavily.Models.SearchResponse.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level

Check failure on line 68 in src/libs/Tavily/Generated/Tavily.Models.SearchResponse.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level
#endif
public string ToJson(

Check warning on line 70 in src/libs/Tavily/Generated/Tavily.Models.SearchResponse.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'SearchResponse.ToJson(JsonSerializerOptions?)'
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

public static global::Tavily.SearchResponse? FromJson(

Check warning on line 78 in src/libs/Tavily/Generated/Tavily.Models.SearchResponse.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'SearchResponse.FromJson(string, JsonSerializerContext)'
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Tavily.SearchResponse),
jsonSerializerContext) as global::Tavily.SearchResponse;
}

#if NET6_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.")]

Check failure on line 90 in src/libs/Tavily/Generated/Tavily.Models.SearchResponse.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level

Check failure on line 90 in src/libs/Tavily/Generated/Tavily.Models.SearchResponse.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level
#endif
public static global::Tavily.SearchResponse? FromJson(

Check warning on line 92 in src/libs/Tavily/Generated/Tavily.Models.SearchResponse.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'SearchResponse.FromJson(string, JsonSerializerOptions?)'
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Tavily.SearchResponse>(
json,
jsonSerializerOptions);
}

}
}
46 changes: 46 additions & 0 deletions src/libs/Tavily/Generated/Tavily.Models.SearchResult.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,51 @@
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();


public string ToJson(

Check warning on line 52 in src/libs/Tavily/Generated/Tavily.Models.SearchResult.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'SearchResult.ToJson(JsonSerializerContext)'
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

#if NET6_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.")]

Check failure on line 63 in src/libs/Tavily/Generated/Tavily.Models.SearchResult.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level
#endif
public string ToJson(

Check warning on line 65 in src/libs/Tavily/Generated/Tavily.Models.SearchResult.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'SearchResult.ToJson(JsonSerializerOptions?)'
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

public static global::Tavily.SearchResult? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Tavily.SearchResult),
jsonSerializerContext) as global::Tavily.SearchResult;
}

#if NET6_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.")]

Check failure on line 85 in src/libs/Tavily/Generated/Tavily.Models.SearchResult.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

'RequiresDynamicCodeAttribute' is inaccessible due to its protection level
#endif
public static global::Tavily.SearchResult? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Tavily.SearchResult>(
json,
jsonSerializerOptions);
}

}
}
4 changes: 2 additions & 2 deletions src/libs/Tavily/Generated/Tavily.TavilyClient.Search.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ partial void ProcessSearchResponseContent(
using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext);
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -94,7 +94,7 @@ partial void ProcessSearchResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Tavily.SearchResponse), JsonSerializerContext) as global::Tavily.SearchResponse ??
global::Tavily.SearchResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand Down