Skip to content

Commit 252c361

Browse files
committed
Revert to simplified new work-around
1 parent 2df76fe commit 252c361

File tree

1 file changed

+52
-43
lines changed

1 file changed

+52
-43
lines changed

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 52 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ actions:
226226
url: https://www.elastic.co/docs/explore-analyze/alerts-cases/watcher
227227
description: Learn more about Watcher.
228228
# Add x-model and/or abbreviate schemas that should point to other references
229+
- target: "$.components['schemas']['_types.query_dsl.QueryContainer']"
230+
description: Add x-model for the QueryContainer object
231+
update:
232+
x-model: true
229233
- target: "$.components['schemas']['_types.analysis.CharFilter'].oneOf"
230234
description: Remove existing oneOf definition for CharFilter
231235
remove: true
@@ -1056,50 +1060,55 @@ actions:
10561060
externalDocs:
10571061
url: https://www.elastic.co/docs/explore-analyze/query-filter/languages/querydsl
10581062
description: Query DSL
1059-
- target: "$.components['schemas']['_global.search._types.SearchRequestBody'].properties"
1060-
description: Add x-model to SearchRequestBody aggregations property
1061-
update:
1062-
aggregations:
1063-
x-model: true
1064-
- target: "$.components['schemas']['_global.search._types.SearchRequestBody'].properties.aggregations.additionalProperties"
1065-
description: Remove additionalProperties from SearchRequestBody aggregations
1066-
remove: true
1067-
- target: "$.components['schemas']['_types.query_dsl.QueryContainer']"
1068-
description: Add x-model for the QueryContainer object
1069-
update:
1070-
x-model: true
1071-
- target: "$.components['schemas']['_types.query_dsl.QueryContainer'].properties"
1072-
description: Remove the QueryContainer properties
1073-
remove: true
1074-
- target: "$.components['schemas']['_global.search._types.FieldCollapse']"
1075-
description: Add x-model and externalDocs to FieldCollapse
1076-
update:
1077-
x-model: true
1078-
externalDocs:
1079-
url: https://www.elastic.co/docs/reference/elasticsearch/rest-apis/collapse-search-results
1080-
- target: "$.components['schemas']['_global.search._types.FieldCollapse'].properties"
1081-
description: Remove properties from FieldCollapse
1082-
remove: true
1083-
- target: "$.components['schemas']['_global.search._types.FieldCollapse'].required"
1084-
description: Remove required from FieldCollapse
1085-
remove: true
1086-
- target: "$.components['schemas']['_global.search._types.Highlight']"
1087-
description: Add x-model, description, and externalDocs to Highlight
1088-
update:
1089-
x-model: true
1090-
description: The highlighter to use for retrieving highlighted snippets from one or more fields in your search results.
1091-
externalDocs:
1092-
url: https://www.elastic.co/docs/reference/elasticsearch/rest-apis/highlighting
1093-
- target: "$.components['schemas']['_global.search._types.Highlight'].allOf"
1094-
description: Remove allOf from Highlight
1095-
remove: true
1096-
- target: "$.components['schemas']['_global.search._types.SearchRequestBody'].properties.knn"
1097-
description: Add x-model to SearchRequestBody knn
1098-
update:
1099-
x-model: true
1100-
- target: "$.components['schemas']['_global.search._types.SearchRequestBody'].properties.knn.oneOf"
1101-
description: Remove oneOf from knn
1063+
- target: "$.components['schemas']['_types.ScriptSource'].oneOf"
1064+
description: Remove oneOf temporarily from ScriptSource
11021065
remove: true
1066+
- target: "$.components['schemas']['_types.ScriptSource']"
1067+
description: Re-add simplified oneOf temporarily in ScriptSource
1068+
update:
1069+
oneOf:
1070+
- type: string
1071+
- type: object
1072+
# - target: "$.components['schemas']['_global.search._types.SearchRequestBody'].properties"
1073+
# description: Add x-model to SearchRequestBody aggregations property
1074+
# update:
1075+
# aggregations:
1076+
# x-model: true
1077+
# - target: "$.components['schemas']['_global.search._types.SearchRequestBody'].properties.aggregations.additionalProperties"
1078+
# description: Remove additionalProperties from SearchRequestBody aggregations
1079+
# remove: true
1080+
# - target: "$.components['schemas']['_types.query_dsl.QueryContainer'].properties"
1081+
# description: Remove the QueryContainer properties
1082+
# remove: true
1083+
# - target: "$.components['schemas']['_global.search._types.FieldCollapse']"
1084+
# description: Add x-model and externalDocs to FieldCollapse
1085+
# update:
1086+
# x-model: true
1087+
# externalDocs:
1088+
# url: https://www.elastic.co/docs/reference/elasticsearch/rest-apis/collapse-search-results
1089+
# - target: "$.components['schemas']['_global.search._types.FieldCollapse'].properties"
1090+
# description: Remove properties from FieldCollapse
1091+
# remove: true
1092+
# - target: "$.components['schemas']['_global.search._types.FieldCollapse'].required"
1093+
# description: Remove required from FieldCollapse
1094+
# remove: true
1095+
# - target: "$.components['schemas']['_global.search._types.Highlight']"
1096+
# description: Add x-model, description, and externalDocs to Highlight
1097+
# update:
1098+
# x-model: true
1099+
# description: The highlighter to use for retrieving highlighted snippets from one or more fields in your search results.
1100+
# externalDocs:
1101+
# url: https://www.elastic.co/docs/reference/elasticsearch/rest-apis/highlighting
1102+
# - target: "$.components['schemas']['_global.search._types.Highlight'].allOf"
1103+
# description: Remove allOf from Highlight
1104+
# remove: true
1105+
# - target: "$.components['schemas']['_global.search._types.SearchRequestBody'].properties.knn"
1106+
# description: Add x-model to SearchRequestBody knn
1107+
# update:
1108+
# x-model: true
1109+
# - target: "$.components['schemas']['_global.search._types.SearchRequestBody'].properties.knn.oneOf"
1110+
# description: Remove oneOf from knn
1111+
# remove: true
11031112
# Examples
11041113
# Examples
11051114
## xCodeSamples

0 commit comments

Comments
 (0)