Skip to content

Commit 0a9041c

Browse files
authored
[7.8] 7.x only REST specification fixes (#56736) (#57166)
Fixes for the REST specification specific to 7.x * remove ignore "cat.thread_pool.json" and add the "" as valid option. * remove ignore "indices.put_mapping.json" by adding the required / in the path to pass validation.
1 parent c69add3 commit 0a9041c

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

rest-api-spec/build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,3 @@ artifacts {
1010
restSpecs(new File(projectDir, "src/main/resources/rest-api-spec/api"))
1111
restTests(new File(projectDir, "src/main/resources/rest-api-spec/test"))
1212
}
13-
14-
validateRestSpec {
15-
ignore "cat.thread_pool.json"
16-
ignore "indices.put_mapping.json"
17-
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"p"
4545
],
4646
"deprecated":{
47-
"version":"7.8.0",
47+
"version":"7.7.0",
4848
"description":"Setting this value has no effect and will be removed from the specification."
4949
}
5050
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
}
128128
},
129129
{
130-
"path":"{index}/_mappings",
130+
"path":"/{index}/_mappings",
131131
"methods":[
132132
"PUT",
133133
"POST"

rest-api-spec/src/main/resources/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
"type": "array",
202202
"items": {
203203
"type": "string",
204-
"pattern": "^[a-zA-Z_]+$"
204+
"pattern": "^\\d*|[a-zA-Z_]+$"
205205
},
206206
"title": "Valid options when type is an enum"
207207
},

0 commit comments

Comments
 (0)