From e7b097dc8cd566960ec86c6f117be5179885f737 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 15 Jul 2026 01:45:36 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...ResultOutputEntitieVariant3Properties.g.cs | 13 +- ...ntitieVariant3PropertiesAbstract.Json.g.cs | 141 ++++++++++++++++++ ...tputEntitieVariant3PropertiesAbstract.g.cs | 19 +++ ....Models.WebsetItemEvaluationSatisfied.g.cs | 14 +- src/libs/Exa/openapi.yaml | 10 +- 5 files changed, 187 insertions(+), 10 deletions(-) create mode 100644 src/libs/Exa/Generated/Exa.Models.SearchResultOutputEntitieVariant3PropertiesAbstract.Json.g.cs create mode 100644 src/libs/Exa/Generated/Exa.Models.SearchResultOutputEntitieVariant3PropertiesAbstract.g.cs diff --git a/src/libs/Exa/Generated/Exa.Models.SearchResultOutputEntitieVariant3Properties.g.cs b/src/libs/Exa/Generated/Exa.Models.SearchResultOutputEntitieVariant3Properties.g.cs index 38bcc36..637171c 100644 --- a/src/libs/Exa/Generated/Exa.Models.SearchResultOutputEntitieVariant3Properties.g.cs +++ b/src/libs/Exa/Generated/Exa.Models.SearchResultOutputEntitieVariant3Properties.g.cs @@ -57,6 +57,12 @@ public sealed partial class SearchResultOutputEntitieVariant3Properties [global::System.Text.Json.Serialization.JsonPropertyName("referenceCount")] public int? ReferenceCount { get; set; } + /// + /// Publication abstract text. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("abstract")] + public string? Abstract { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -90,6 +96,9 @@ public sealed partial class SearchResultOutputEntitieVariant3Properties /// /// Number of works this publication cites (outgoing references). /// + /// + /// Publication abstract text. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -101,7 +110,8 @@ public SearchResultOutputEntitieVariant3Properties( global::Exa.SearchResultOutputEntitieVariant3PropertiesType2? type, string? language, int? citationCount, - int? referenceCount) + int? referenceCount, + string? @abstract) { this.Title = title; this.Year = year; @@ -111,6 +121,7 @@ public SearchResultOutputEntitieVariant3Properties( this.CitationCount = citationCount; this.Authors = authors ?? throw new global::System.ArgumentNullException(nameof(authors)); this.ReferenceCount = referenceCount; + this.Abstract = @abstract; } /// diff --git a/src/libs/Exa/Generated/Exa.Models.SearchResultOutputEntitieVariant3PropertiesAbstract.Json.g.cs b/src/libs/Exa/Generated/Exa.Models.SearchResultOutputEntitieVariant3PropertiesAbstract.Json.g.cs new file mode 100644 index 0000000..182d35a --- /dev/null +++ b/src/libs/Exa/Generated/Exa.Models.SearchResultOutputEntitieVariant3PropertiesAbstract.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Exa +{ + public sealed partial class SearchResultOutputEntitieVariant3PropertiesAbstract + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Exa.SourceGenerationContext.Default); + } + + /// + /// 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 + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Exa.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Exa.SearchResultOutputEntitieVariant3PropertiesAbstract? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Exa.SearchResultOutputEntitieVariant3PropertiesAbstract), + jsonSerializerContext) as global::Exa.SearchResultOutputEntitieVariant3PropertiesAbstract; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Exa.SearchResultOutputEntitieVariant3PropertiesAbstract? FromJson( + string json) + { + return FromJson( + json, + global::Exa.SourceGenerationContext.Default); + } + + /// + /// 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 + public static global::Exa.SearchResultOutputEntitieVariant3PropertiesAbstract? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Exa.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Exa.SearchResultOutputEntitieVariant3PropertiesAbstract), + jsonSerializerContext).ConfigureAwait(false)) as global::Exa.SearchResultOutputEntitieVariant3PropertiesAbstract; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Exa.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream 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 + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Exa.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Exa/Generated/Exa.Models.SearchResultOutputEntitieVariant3PropertiesAbstract.g.cs b/src/libs/Exa/Generated/Exa.Models.SearchResultOutputEntitieVariant3PropertiesAbstract.g.cs new file mode 100644 index 0000000..7505c5e --- /dev/null +++ b/src/libs/Exa/Generated/Exa.Models.SearchResultOutputEntitieVariant3PropertiesAbstract.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Exa +{ + /// + /// Publication abstract text. + /// + public sealed partial class SearchResultOutputEntitieVariant3PropertiesAbstract + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Exa/Generated/Exa.Models.WebsetItemEvaluationSatisfied.g.cs b/src/libs/Exa/Generated/Exa.Models.WebsetItemEvaluationSatisfied.g.cs index 4e68d80..1c5efdf 100644 --- a/src/libs/Exa/Generated/Exa.Models.WebsetItemEvaluationSatisfied.g.cs +++ b/src/libs/Exa/Generated/Exa.Models.WebsetItemEvaluationSatisfied.g.cs @@ -11,15 +11,15 @@ public enum WebsetItemEvaluationSatisfied /// /// /// - No, + False, /// /// /// - Unclear, + True, /// /// /// - Yes, + Unclear, } /// @@ -34,9 +34,9 @@ public static string ToValueString(this WebsetItemEvaluationSatisfied value) { return value switch { - WebsetItemEvaluationSatisfied.No => "no", + WebsetItemEvaluationSatisfied.False => "false", + WebsetItemEvaluationSatisfied.True => "true", WebsetItemEvaluationSatisfied.Unclear => "unclear", - WebsetItemEvaluationSatisfied.Yes => "yes", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -47,9 +47,9 @@ public static string ToValueString(this WebsetItemEvaluationSatisfied value) { return value switch { - "no" => WebsetItemEvaluationSatisfied.No, + "false" => WebsetItemEvaluationSatisfied.False, + "true" => WebsetItemEvaluationSatisfied.True, "unclear" => WebsetItemEvaluationSatisfied.Unclear, - "yes" => WebsetItemEvaluationSatisfied.Yes, _ => null, }; } diff --git a/src/libs/Exa/openapi.yaml b/src/libs/Exa/openapi.yaml index 9394253..d1c7f54 100644 --- a/src/libs/Exa/openapi.yaml +++ b/src/libs/Exa/openapi.yaml @@ -8147,6 +8147,11 @@ components: - type: 'null' description: Number of works this publication cites (outgoing references). + abstract: + anyOf: + - type: string + - type: 'null' + description: Publication abstract text. required: - title - year @@ -8156,6 +8161,7 @@ components: - citationCount - authors - referenceCount + - abstract additionalProperties: false description: Publication-specific entity fields. required: @@ -11381,8 +11387,8 @@ components: type: - string enum: - - 'yes' - - 'no' + - true + - false - unclear description: The satisfaction of the criterion references: