Skip to content

Commit 0bd92e1

Browse files
Update rest-api-spec (#4763)
Co-authored-by: pquentin <42327+pquentin@users.noreply.github.com>
1 parent c99d8ac commit 0bd92e1

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

output/schema/schema.json

Lines changed: 3 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: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"cluster.put_component_template": {
1717
"request": [
18-
"Request: missing json spec query parameter 'timeout'"
18+
"Request: missing json spec query parameter 'cause'"
1919
],
2020
"response": []
2121
},
@@ -37,12 +37,6 @@
3737
],
3838
"response": []
3939
},
40-
"esql.async_query_get": {
41-
"request": [
42-
"Request: query parameter 'format' does not exist in the json spec"
43-
],
44-
"response": []
45-
},
4640
"get_source": {
4741
"request": [
4842
"Request: query parameter 'stored_fields' does not exist in the json spec"

specification/_json_spec/cluster.put_component_template.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030
"description": "Whether the index template should only be added if new or can also replace an existing one",
3131
"default": false
3232
},
33-
"timeout": {
34-
"type": "time",
35-
"description": "Explicit operation timeout"
33+
"cause": {
34+
"type": "string",
35+
"description": "User defined reason for create the component template",
36+
"default": "api"
3637
},
3738
"master_timeout": {
3839
"type": "time",

specification/_json_spec/esql.async_query_get.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
]
2525
},
2626
"params": {
27+
"format": {
28+
"type": "string",
29+
"description": "a short version of the Accept header, e.g. json, yaml"
30+
},
2731
"wait_for_completion_timeout": {
2832
"type": "time",
2933
"description": "Specify the time that the request should block waiting for the final response"

specification/_json_spec/esql.get_query.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"stability": "experimental",
88
"visibility": "public",
99
"headers": {
10-
"accept": [],
10+
"accept": ["application/json"],
1111
"content_type": ["application/json"]
1212
},
1313
"url": {

0 commit comments

Comments
 (0)