diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 5007cbb878..ad46626d2f 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -49827,7 +49827,15 @@ "type": "string" }, "version": { - "type": "string" + "oneOf": [ + { + "type": "string" + }, + { + "nullable": true, + "type": "string" + } + ] }, "alias_count": { "type": "string" diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 69df92d985..f3ec2127ad 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -33187,7 +33187,15 @@ "type": "string" }, "version": { - "type": "string" + "oneOf": [ + { + "type": "string" + }, + { + "nullable": true, + "type": "string" + } + ] }, "alias_count": { "type": "string" diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index e5ba313772..9c4b2941fe 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -107504,11 +107504,23 @@ "name": "version", "required": true, "type": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } + "items": [ + { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + { + "kind": "instance_of", + "type": { + "name": "null", + "namespace": "_builtins" + } + } + ], + "kind": "union_of" } }, { diff --git a/output/schema/schema.json b/output/schema/schema.json index 19a6c3d521..6e99b5ffa5 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -91113,11 +91113,23 @@ "name": "version", "required": true, "type": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } + "kind": "union_of", + "items": [ + { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + { + "kind": "instance_of", + "type": { + "name": "null", + "namespace": "_builtins" + } + } + ] } }, { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index b803fc7594..4c545ba6fc 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -6982,7 +6982,7 @@ export type CatAllocationResponse = CatAllocationAllocationRecord[] export interface CatComponentTemplatesComponentTemplate { name: string - version: string + version: string | null alias_count: string mapping_count: string settings_count: string diff --git a/specification/cat/component_templates/types.ts b/specification/cat/component_templates/types.ts index fcad97e423..27bd124e2d 100644 --- a/specification/cat/component_templates/types.ts +++ b/specification/cat/component_templates/types.ts @@ -19,7 +19,7 @@ export class ComponentTemplate { name: string - version: string + version: string | null alias_count: string mapping_count: string settings_count: string