From 0dcd6913b20bb4c347dcb1ed5d38fd088c18f3ac Mon Sep 17 00:00:00 2001 From: pgayvallet Date: Tue, 5 Mar 2024 08:34:42 +0100 Subject: [PATCH 1/2] Define `Pipeline._meta` as optional --- specification/ingest/_types/Pipeline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/ingest/_types/Pipeline.ts b/specification/ingest/_types/Pipeline.ts index da8a19de91..8863f1794c 100644 --- a/specification/ingest/_types/Pipeline.ts +++ b/specification/ingest/_types/Pipeline.ts @@ -41,7 +41,7 @@ export class Pipeline { /** * Arbitrary metadata about the ingest pipeline. This map is not automatically generated by Elasticsearch. */ - _meta: Metadata + _meta?: Metadata } // Unused .. but let's keep it for now From 8f80ed65dd487f9e57a504b4e7da0190dc8138d8 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Tue, 5 Mar 2024 14:12:54 +0400 Subject: [PATCH 2/2] Run make contrib --- output/openapi/elasticsearch-serverless-openapi.json | 5 +---- output/schema/schema.json | 2 +- output/typescript/types.ts | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 9ade9c2791..5973b3e05c 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -49735,10 +49735,7 @@ "_meta": { "$ref": "#/components/schemas/_types:Metadata" } - }, - "required": [ - "_meta" - ] + } }, "ingest._types:ProcessorContainer": { "type": "object", diff --git a/output/schema/schema.json b/output/schema/schema.json index 1aaaa71f97..3f9985a945 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -130716,7 +130716,7 @@ { "description": "Arbitrary metadata about the ingest pipeline. This map is not automatically generated by Elasticsearch.", "name": "_meta", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 889dff57d9..2b9e6d4f89 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -11762,7 +11762,7 @@ export interface IngestPipeline { on_failure?: IngestProcessorContainer[] processors?: IngestProcessorContainer[] version?: VersionNumber - _meta: Metadata + _meta?: Metadata } export interface IngestPipelineConfig {