Skip to content

Commit 6b543cd

Browse files
committed
Add overlay for deep objects in alias APIs
1 parent 295ccb7 commit 6b543cd

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

docs/overlays/elasticsearch-shared-example-overlays.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,45 @@ actions:
1515
oneOf:
1616
- type: string
1717
- type: object
18+
- target: "$.components['schemas']['indices.update_aliases:AddAction'].properties.filter"
19+
description: Remove filter from update aliases add action
20+
remove: true
21+
- target: "$.components['schemas']['indices.update_aliases:AddAction'].properties"
22+
description: Re-add simplified filter for update aliases add action
23+
update:
24+
filter:
25+
x-abbreviated: true
26+
type: object
27+
description: A query used to limit the documents the alias can access.
28+
externalDocs:
29+
description: Query DSL
30+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
31+
- target: "$.components['requestBodies']['indices.put_alias'].content['application/json'].schema.properties.filter"
32+
description: Remove filter from create or update alias
33+
remove: true
34+
- target: "$.components['requestBodies']['indices.put_alias'].content['application/json'].schema.properties"
35+
description: Re-add simplified filter for create or update alias
36+
update:
37+
filter:
38+
x-abbreviated: true
39+
type: object
40+
description: A query used to limit the documents the alias can access.
41+
externalDocs:
42+
description: Query DSL
43+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
44+
- target: "$.components['schemas']['indices._types:AliasDefinition'].properties.filter"
45+
description: Remove filter from alias definition
46+
remove: true
47+
- target: "$.components['schemas']['indices._types:AliasDefinition'].properties"
48+
description: Re-add simplified filter for alias definition
49+
update:
50+
filter:
51+
x-abbreviated: true
52+
type: object
53+
description: A query used to limit the documents the alias can access.
54+
externalDocs:
55+
description: Query DSL
56+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
1857
# Examples
1958
- target: "$.components['requestBodies']['async_search.submit']"
2059
description: "Add example for asynch search submit request"

0 commit comments

Comments
 (0)