From 39bbe89fa49252df2f657db49a570a8fae7fc062 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 5 Mar 2024 14:49:20 +0400 Subject: [PATCH] [Backport 8.13] Define `Pipeline._meta` as optional (#2438) * Define `Pipeline._meta` as optional * Run make contrib --------- Co-authored-by: Quentin Pradet (cherry picked from commit 0672f8ff11beb1eee5a90e4bfa27b73cbcaaac18) Co-authored-by: Pierre Gayvallet --- output/openapi/elasticsearch-serverless-openapi.json | 5 +---- output/schema/schema.json | 2 +- output/typescript/types.ts | 2 +- specification/ingest/_types/Pipeline.ts | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 428ced4c6f..7ea6cbbb9f 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -49738,10 +49738,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 61484080d5..56c65df3d1 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -130723,7 +130723,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 1899bc37b5..7aa543633e 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 { 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