Skip to content

Commit fe10c2e

Browse files
authored
rest-api-spec: specify default value for format in cat APIs (#134528) (#134622)
* rest-api-spec: specify default value for local in cat APIs * Fix default value (cherry picked from commit f022413)
1 parent 4516050 commit fe10c2e

25 files changed

+25
-0
lines changed

rest-api-spec/src/main/resources/rest-api-spec/api/cat.aliases.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"params": {
3838
"format": {
3939
"type": "string",
40+
"default": "text",
4041
"description": "a short version of the Accept header, e.g. json, yaml"
4142
},
4243
"local": {

rest-api-spec/src/main/resources/rest-api-spec/api/cat.allocation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"params": {
3838
"format": {
3939
"type": "string",
40+
"default": "text",
4041
"description": "a short version of the Accept header, e.g. json, yaml"
4142
},
4243
"bytes": {

rest-api-spec/src/main/resources/rest-api-spec/api/cat.component_templates.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"params": {
3838
"format": {
3939
"type": "string",
40+
"default": "text",
4041
"description": "a short version of the Accept header, e.g. json, yaml"
4142
},
4243
"local": {

rest-api-spec/src/main/resources/rest-api-spec/api/cat.count.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"params": {
3838
"format": {
3939
"type": "string",
40+
"default": "text",
4041
"description": "a short version of the Accept header, e.g. json, yaml"
4142
},
4243
"h": {

rest-api-spec/src/main/resources/rest-api-spec/api/cat.fielddata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"params": {
3838
"format": {
3939
"type": "string",
40+
"default": "text",
4041
"description": "a short version of the Accept header, e.g. json, yaml"
4142
},
4243
"bytes": {

rest-api-spec/src/main/resources/rest-api-spec/api/cat.health.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"params": {
2626
"format": {
2727
"type": "string",
28+
"default": "text",
2829
"description": "a short version of the Accept header, e.g. json, yaml"
2930
},
3031
"h": {

rest-api-spec/src/main/resources/rest-api-spec/api/cat.indices.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"params": {
3838
"format": {
3939
"type": "string",
40+
"default": "text",
4041
"description": "a short version of the Accept header, e.g. json, yaml"
4142
},
4243
"bytes": {

rest-api-spec/src/main/resources/rest-api-spec/api/cat.master.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"params": {
2626
"format": {
2727
"type": "string",
28+
"default": "text",
2829
"description": "a short version of the Accept header, e.g. json, yaml"
2930
},
3031
"local": {

rest-api-spec/src/main/resources/rest-api-spec/api/cat.ml_data_frame_analytics.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
},
5555
"format": {
5656
"type": "string",
57+
"default": "text",
5758
"description": "a short version of the Accept header, e.g. json, yaml"
5859
},
5960
"h": {

rest-api-spec/src/main/resources/rest-api-spec/api/cat.ml_datafeeds.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
},
4343
"format": {
4444
"type": "string",
45+
"default": "text",
4546
"description": "a short version of the Accept header, e.g. json, yaml"
4647
},
4748
"h": {

0 commit comments

Comments
 (0)