Skip to content

Commit c88c56c

Browse files
committed
Work-around to remove oneOf
1 parent 7e902e1 commit c88c56c

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,46 +5,37 @@ info:
55
version: 0.0.1
66
actions:
77
# Add x-model and/or abbreviate schemas that should point to other references
8-
# - target: "$.components['schemas']['_types.analysis:CharFilter'].oneOf"
9-
# description: Remove existing oneOf definition for CharFilter
10-
# remove: true
8+
- target: "$.components['schemas']['_types.analysis:CharFilter'].oneOf"
9+
description: Remove existing oneOf definition for CharFilter
10+
remove: true
1111
- target: "$.components['schemas']['_types.analysis:CharFilter']"
1212
description: Simplify CharFilter definition
1313
update:
1414
x-model: true
15-
# oneOf:
16-
# - type: array
17-
# - type: string
1815
description: >
1916
Character filters that are used to preprocess characters before they are passed to the tokenizer.
2017
externalDocs:
2118
url: https://www.elastic.co/guide/en/elasticsearch/reference/master/analysis-charfilters.html
2219
description: Character filters reference
23-
# - target: "$.components['schemas']['_types.analysis:Tokenizer'].oneOf"
24-
# description: Remove existing oneOf definition for tokenizer
25-
# remove: true
20+
- target: "$.components['schemas']['_types.analysis:Tokenizer'].oneOf"
21+
description: Remove existing oneOf definition for tokenizer
22+
remove: true
2623
- target: "$.components['schemas']['_types.analysis:Tokenizer']"
2724
description: Simplify tokenizer definition
2825
update:
2926
x-model: true
30-
# oneOf:
31-
# - type: array
32-
# - type: string
3327
description: >
3428
A tokenizer to use to convert text into tokens.
3529
externalDocs:
3630
url: https://www.elastic.co/guide/en/elasticsearch/reference/master/analysis-tokenizers.html
3731
description: Tokenizer reference
38-
# - target: "$.components['schemas']['_types.analysis:TokenFilter'].oneOf"
39-
# description: Remove existing oneOf definition for tokenfilter
40-
# remove: true
32+
- target: "$.components['schemas']['_types.analysis:TokenFilter'].oneOf"
33+
description: Remove existing oneOf definition for tokenfilter
34+
remove: true
4135
- target: "$.components['schemas']['_types.analysis:TokenFilter']"
4236
description: Simplify tokenfilter definition
4337
update:
4438
x-model: true
45-
# oneOf:
46-
# - type: array
47-
# - type: string
4839
description: >
4940
Token filters that are applied after the tokenizer.
5041
externalDocs:

0 commit comments

Comments
 (0)