7.x only REST specification fixes (#56736)

Fixes for the REST specification specific to 7.x

* remove ignore "cat.thread_pool.json" and add the "" as valid option. #55984 deprecated this field since it these params here have no effect on this specific API
* remove ignore "indices.put_mapping.json" by adding the required / in the path to pass validation.
This commit is contained in:
Jake Landis 2020-05-26 12:33:57 -05:00 committed by GitHub
parent 74b2c8a770
commit 920677af6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 8 deletions

View File

@ -10,8 +10,3 @@ artifacts {
restSpecs(new File(projectDir, "src/main/resources/rest-api-spec/api"))
restTests(new File(projectDir, "src/main/resources/rest-api-spec/test"))
}
validateRestSpec {
ignore "cat.thread_pool.json"
ignore "indices.put_mapping.json"
}

View File

@ -44,7 +44,7 @@
"p"
],
"deprecated":{
"version":"7.8.0",
"version":"7.7.0",
"description":"Setting this value has no effect and will be removed from the specification."
}
},

View File

@ -127,7 +127,7 @@
}
},
{
"path":"{index}/_mappings",
"path":"/{index}/_mappings",
"methods":[
"PUT",
"POST"

View File

@ -201,7 +201,7 @@
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-zA-Z_]+$"
"pattern": "^\\d*|[a-zA-Z_]+$"
},
"title": "Valid options when type is an enum"
},