Skip to content

Commit c1a4840

Browse files
Declare query parameters
Declared the query parameters, ran make contrib and resolved the validation errors
1 parent 98bba07 commit c1a4840

File tree

5 files changed

+133
-10
lines changed

5 files changed

+133
-10
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 49 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@
77
],
88
"response": []
99
},
10-
"cluster.allocation_explain": {
11-
"request": [
12-
"Request: missing json spec query parameter 'current_node'",
13-
"Request: missing json spec query parameter 'index'",
14-
"Request: missing json spec query parameter 'primary'",
15-
"Request: missing json spec query parameter 'shard'"
16-
],
17-
"response": []
18-
},
1910
"create": {
2011
"request": [
2112
"Request: query parameter 'if_primary_term' does not exist in the json spec",

output/typescript/types.ts

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,22 @@ export interface Request extends RequestBase {
4545
}
4646
]
4747
query_parameters: {
48+
/**
49+
* Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node.
50+
*/
51+
current_node?: string
52+
/**
53+
* Specifies the name of the index that you would like an explanation for.
54+
*/
55+
index?: IndexName
56+
/**
57+
* If true, returns explanation for the primary shard for the given shard ID.
58+
*/
59+
primary?: boolean
60+
/**
61+
* Specifies the ID of the shard that you would like an explanation for.
62+
*/
63+
shard?: integer
4864
/**
4965
* If true, returns information about disk usage and shard sizes.
5066
* @server_default false

0 commit comments

Comments
 (0)