From 6f2146ac4c9e14e0a0014ca275352308e923fe16 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 30 Jan 2024 09:21:58 +0100 Subject: [PATCH] Make properties optional (#2401) (#2403) (cherry picked from commit e66a88c9fd963184405204274c5c2ae9864507a6) Co-authored-by: Steve Gordon --- output/openapi/elasticsearch-serverless-openapi.json | 6 +----- output/schema/schema.json | 8 ++++---- output/typescript/types.ts | 8 ++++---- specification/_types/analysis/tokenizers.ts | 8 ++++---- 4 files changed, 13 insertions(+), 17 deletions(-) diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 6f58f3cc7c..4699e8f532 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -44289,11 +44289,7 @@ } }, "required": [ - "type", - "buffer_size", - "delimiter", - "reverse", - "skip" + "type" ] } ] diff --git a/output/schema/schema.json b/output/schema/schema.json index 36f1aea6c3..a500a7de4f 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -64203,7 +64203,7 @@ }, { "name": "buffer_size", - "required": true, + "required": false, "type": { "generics": [ { @@ -64223,7 +64223,7 @@ }, { "name": "delimiter", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -64245,7 +64245,7 @@ }, { "name": "reverse", - "required": true, + "required": false, "type": { "generics": [ { @@ -64265,7 +64265,7 @@ }, { "name": "skip", - "required": true, + "required": false, "type": { "generics": [ { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 81fdfdf834..268165a08b 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -4580,11 +4580,11 @@ export type AnalysisNormalizer = AnalysisLowercaseNormalizer | AnalysisCustomNor export interface AnalysisPathHierarchyTokenizer extends AnalysisTokenizerBase { type: 'path_hierarchy' - buffer_size: SpecUtilsStringified - delimiter: string + buffer_size?: SpecUtilsStringified + delimiter?: string replacement?: string - reverse: SpecUtilsStringified - skip: SpecUtilsStringified + reverse?: SpecUtilsStringified + skip?: SpecUtilsStringified } export interface AnalysisPatternAnalyzer { diff --git a/specification/_types/analysis/tokenizers.ts b/specification/_types/analysis/tokenizers.ts index 5dd7546606..9972039711 100644 --- a/specification/_types/analysis/tokenizers.ts +++ b/specification/_types/analysis/tokenizers.ts @@ -88,11 +88,11 @@ export class NoriTokenizer extends TokenizerBase { export class PathHierarchyTokenizer extends TokenizerBase { type: 'path_hierarchy' - buffer_size: Stringified - delimiter: string + buffer_size?: Stringified + delimiter?: string replacement?: string - reverse: Stringified - skip: Stringified + reverse?: Stringified + skip?: Stringified } export class PatternTokenizer extends TokenizerBase {