From 3cc0fe406996958cbe3275f34e2bc07f3ec39cfc Mon Sep 17 00:00:00 2001 From: Laura Date: Wed, 6 Mar 2024 12:34:33 +0100 Subject: [PATCH] making dims optional for DenseVectorProperty (issue 754) --- output/openapi/elasticsearch-serverless-openapi.json | 3 +-- output/schema/schema.json | 2 +- output/typescript/types.ts | 2 +- specification/_types/mapping/complex.ts | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 026ea50689..b3370fe101 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -46394,8 +46394,7 @@ } }, "required": [ - "type", - "dims" + "type" ] } ] diff --git a/output/schema/schema.json b/output/schema/schema.json index 87cb066081..fda2856fb0 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -67964,7 +67964,7 @@ }, { "name": "dims", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index f8a19f6886..898a617844 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -4945,7 +4945,7 @@ export interface MappingDenseVectorIndexOptions { export interface MappingDenseVectorProperty extends MappingPropertyBase { type: 'dense_vector' - dims: integer + dims?: integer similarity?: string index?: boolean index_options?: MappingDenseVectorIndexOptions diff --git a/specification/_types/mapping/complex.ts b/specification/_types/mapping/complex.ts index a51d5783ef..4a1bf14814 100644 --- a/specification/_types/mapping/complex.ts +++ b/specification/_types/mapping/complex.ts @@ -50,7 +50,7 @@ export class ObjectProperty extends CorePropertyBase { export class DenseVectorProperty extends PropertyBase { type: 'dense_vector' - dims: integer + dims?: integer similarity?: string index?: boolean index_options?: DenseVectorIndexOptions