From e66a88c9fd963184405204274c5c2ae9864507a6 Mon Sep 17 00:00:00 2001 From: Steve Gordon Date: Tue, 30 Jan 2024 08:20:56 +0000 Subject: [PATCH] Make properties optional (#2401) --- 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 50717e6ed8..24bda6f4db 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -44343,11 +44343,7 @@ } }, "required": [ - "type", - "buffer_size", - "delimiter", - "reverse", - "skip" + "type" ] } ] diff --git a/output/schema/schema.json b/output/schema/schema.json index 25bb3ac2b5..1a8faf8c4b 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -64245,7 +64245,7 @@ }, { "name": "buffer_size", - "required": true, + "required": false, "type": { "generics": [ { @@ -64265,7 +64265,7 @@ }, { "name": "delimiter", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -64287,7 +64287,7 @@ }, { "name": "reverse", - "required": true, + "required": false, "type": { "generics": [ { @@ -64307,7 +64307,7 @@ }, { "name": "skip", - "required": true, + "required": false, "type": { "generics": [ { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index becb97449e..487c9294f8 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 {