From 2147d70a3659563103954c2e0b4f3958282dfa26 Mon Sep 17 00:00:00 2001 From: Laura Date: Thu, 7 Mar 2024 12:23:11 +0100 Subject: [PATCH] backport of #2232 (issue 418) --- output/schema/schema.json | 6 +++--- output/typescript/types.ts | 6 +++--- specification/_types/analysis/tokenizers.ts | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index d2f0acc810..41facc795d 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -53144,7 +53144,7 @@ }, { "name": "flags", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -53155,7 +53155,7 @@ }, { "name": "group", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -53166,7 +53166,7 @@ }, { "name": "pattern", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 2e1b11ae28..f9f321443d 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -4232,9 +4232,9 @@ export interface AnalysisPatternReplaceTokenFilter extends AnalysisTokenFilterBa export interface AnalysisPatternTokenizer extends AnalysisTokenizerBase { type: 'pattern' - flags: string - group: integer - pattern: string + flags?: string + group?: integer + pattern?: string } export type AnalysisPhoneticEncoder = 'metaphone' | 'double_metaphone' | 'soundex' | 'refined_soundex' | 'caverphone1' | 'caverphone2' | 'cologne' | 'nysiis' | 'koelnerphonetik' | 'haasephonetik' | 'beider_morse' | 'daitch_mokotoff' diff --git a/specification/_types/analysis/tokenizers.ts b/specification/_types/analysis/tokenizers.ts index ec5a5e952d..6141ac178a 100644 --- a/specification/_types/analysis/tokenizers.ts +++ b/specification/_types/analysis/tokenizers.ts @@ -96,9 +96,9 @@ export class PathHierarchyTokenizer extends TokenizerBase { export class PatternTokenizer extends TokenizerBase { type: 'pattern' - flags: string - group: integer - pattern: string + flags?: string + group?: integer + pattern?: string } export class StandardTokenizer extends TokenizerBase {