diff --git a/src/helpers/FixOpenApiSpec/Program.cs b/src/helpers/FixOpenApiSpec/Program.cs index 79c403b..2f34cf4 100644 --- a/src/helpers/FixOpenApiSpec/Program.cs +++ b/src/helpers/FixOpenApiSpec/Program.cs @@ -1,5 +1,4 @@ using Microsoft.OpenApi; -using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Extensions; using Microsoft.OpenApi.Models; using Microsoft.OpenApi.Readers; @@ -14,7 +13,10 @@ var openApiDocument = new OpenApiStringReader().Read(text, out var diagnostics); -//openApiDocument.Components.Schemas["GenerateCompletionRequest"]!.Properties["stream"]!.Default = new OpenApiBoolean(true); +openApiDocument.Components.Schemas["ImageDoc"]!.Properties["id"].Example = null; +openApiDocument.Components.Schemas["api_schemas__embedding__TextDoc"]!.Properties["id"].Example = null; +openApiDocument.Components.Schemas["api_schemas__rank__TextDoc"]!.Properties["id"].Example = null; + openApiDocument.SecurityRequirements = new List { new() diff --git a/src/libs/Jina/Generated/Jina.Models.ApiSchemasEmbeddingTextDoc.g.cs b/src/libs/Jina/Generated/Jina.Models.ApiSchemasEmbeddingTextDoc.g.cs index 6b1fd63..ce01638 100644 --- a/src/libs/Jina/Generated/Jina.Models.ApiSchemasEmbeddingTextDoc.g.cs +++ b/src/libs/Jina/Generated/Jina.Models.ApiSchemasEmbeddingTextDoc.g.cs @@ -9,8 +9,7 @@ namespace Jina public sealed partial class ApiSchemasEmbeddingTextDoc { /// - /// The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value
- /// Example: 4832d7aa75c02fe80ea8dbd67051421e + /// The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } diff --git a/src/libs/Jina/Generated/Jina.Models.ApiSchemasRankTextDoc.g.cs b/src/libs/Jina/Generated/Jina.Models.ApiSchemasRankTextDoc.g.cs index 8029e6d..3e9ccea 100644 --- a/src/libs/Jina/Generated/Jina.Models.ApiSchemasRankTextDoc.g.cs +++ b/src/libs/Jina/Generated/Jina.Models.ApiSchemasRankTextDoc.g.cs @@ -9,8 +9,7 @@ namespace Jina public sealed partial class ApiSchemasRankTextDoc { /// - /// The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value
- /// Example: 4832d7aa75c02fe80ea8dbd67051421e + /// The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } diff --git a/src/libs/Jina/Generated/Jina.Models.ImageDoc.g.cs b/src/libs/Jina/Generated/Jina.Models.ImageDoc.g.cs index f55036e..4be4089 100644 --- a/src/libs/Jina/Generated/Jina.Models.ImageDoc.g.cs +++ b/src/libs/Jina/Generated/Jina.Models.ImageDoc.g.cs @@ -11,8 +11,7 @@ namespace Jina public sealed partial class ImageDoc { /// - /// The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value
- /// Example: 4832d7aa75c02fe80ea8dbd67051421e + /// The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } diff --git a/src/libs/Jina/openapi.yaml b/src/libs/Jina/openapi.yaml index 9ccebdb..ffac0fc 100644 --- a/src/libs/Jina/openapi.yaml +++ b/src/libs/Jina/openapi.yaml @@ -402,7 +402,6 @@ components: title: Id type: string description: 'The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value' - example: 4832d7aa75c02fe80ea8dbd67051421e url: title: Url maxLength: 65536 @@ -790,7 +789,6 @@ components: title: Id type: string description: 'The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value' - example: 4832d7aa75c02fe80ea8dbd67051421e text: title: Text type: string @@ -820,7 +818,6 @@ components: title: Id type: string description: 'The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value' - example: 4832d7aa75c02fe80ea8dbd67051421e text: title: Text type: string