Skip to content

Commit

Permalink
Merge pull request #9 from tryAGI/bot/update-openapi_202409200628
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Sep 20, 2024
2 parents a00088e + 13ed09e commit 1c4895e
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 293 deletions.
114 changes: 0 additions & 114 deletions src/libs/Jina/Generated/AllOf.1.g.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace Jina
Expand Down Expand Up @@ -31,12 +29,12 @@ public sealed partial class BulkEmbeddingJobResponse
public string? ModelPackageArn { get; set; }

/// <summary>
/// The status of the job
/// An enumeration.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Jina.JsonConverters.AllOfJsonConverterFactory1))]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Jina.JsonConverters.BulkEmbeddingJobStatusJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::Jina.AllOf<global::Jina.BulkEmbeddingJobStatus?> Status { get; set; }
public required global::Jina.BulkEmbeddingJobStatus Status { get; set; }

/// <summary>
/// The name of the input file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace Jina
Expand Down Expand Up @@ -37,12 +35,11 @@ public sealed partial class ColbertModelEmbeddingsOutput
public required global::System.Collections.Generic.IList<global::Jina.ColbertModelEmbeddingsOutputDataItem> Data { get; set; }

/// <summary>
/// Total usage of the request. Sums up the usage from each individual input
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("usage")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Jina.JsonConverters.AllOfJsonConverterFactory1))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::Jina.AllOf<global::Jina.ApiSchemasEmbeddingUsage> Usage { get; set; }
public required global::Jina.ApiSchemasEmbeddingUsage Usage { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
7 changes: 2 additions & 5 deletions src/libs/Jina/Generated/Jina.Models.ModelEmbeddingOutput.g.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace Jina
Expand Down Expand Up @@ -37,12 +35,11 @@ public sealed partial class ModelEmbeddingOutput
public required global::System.Collections.Generic.IList<global::Jina.ModelEmbeddingOutputDataItem> Data { get; set; }

/// <summary>
/// Total usage of the request. Sums up the usage from each individual input
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("usage")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Jina.JsonConverters.AllOfJsonConverterFactory1))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::Jina.AllOf<global::Jina.ApiSchemasEmbeddingUsage> Usage { get; set; }
public required global::Jina.ApiSchemasEmbeddingUsage Usage { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
7 changes: 2 additions & 5 deletions src/libs/Jina/Generated/Jina.Models.RankingOutput.g.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace Jina
Expand Down Expand Up @@ -31,12 +29,11 @@ public sealed partial class RankingOutput
public required global::System.Collections.Generic.IList<global::Jina.RankingOutputResult> Results { get; set; }

/// <summary>
/// Total usage of the request.
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("usage")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Jina.JsonConverters.AllOfJsonConverterFactory1))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::Jina.AllOf<global::Jina.ApiSchemasRankUsage> Usage { get; set; }
public required global::Jina.ApiSchemasRankUsage Usage { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
61 changes: 0 additions & 61 deletions src/libs/Jina/Generated/JsonConverters.AllOf1.g.cs

This file was deleted.

25 changes: 0 additions & 25 deletions src/libs/Jina/Generated/JsonConverters.AllOfFactory1.g.cs

This file was deleted.

1 change: 0 additions & 1 deletion src/libs/Jina/Generated/JsonSerializerContext.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ namespace Jina
typeof(global::Jina.JsonConverters.TextEmbeddingAPIInputEmbeddingTypeNullableJsonConverter),
typeof(global::Jina.JsonConverters.TextEmbeddingAPIInputEmbeddingTypeItemJsonConverter),
typeof(global::Jina.JsonConverters.TextEmbeddingAPIInputEmbeddingTypeItemNullableJsonConverter),
typeof(global::Jina.JsonConverters.AllOfJsonConverterFactory1),
typeof(global::Jina.JsonConverters.EmbeddingInputJsonConverter),
typeof(global::Jina.JsonConverters.AnyOfJsonConverterFactory4),
typeof(global::Jina.JsonConverters.AnyOfJsonConverterFactory2),
Expand Down
Loading

0 comments on commit 1c4895e

Please sign in to comment.