Skip to content

Commit

Permalink
[7.7] 7.x only REST specification fixes (#56736) (#57167)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jakelandis authored May 26, 2020
1 parent e9ac5cb commit 4a349a5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions rest-api-spec/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
}
},
{
"path":"{index}/_mappings",
"path":"/{index}/_mappings",
"methods":[
"PUT",
"POST"
Expand Down
2 changes: 1 addition & 1 deletion rest-api-spec/src/main/resources/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 4a349a5

Please sign in to comment.