Skip to content

Commit

Permalink
Fixed required fields and paths list (elastic#39358)
Browse files Browse the repository at this point in the history
Some small fix for the `x-pack` rest api spec.

* In both `security.enable_user.json` and `security.disable_user.json` the `username` parameter was `false` instead of `true` (the documentation is already correct).
* In `security.get_privileges.json` there were missing all the possible paths since the path parameters are not required. This fix aligns the document with the rest of the spec, where all the possible combinations are listed.
  • Loading branch information
delvedor authored and Yogesh Gaikwad committed Feb 27, 2019
1 parent 05d7651 commit 80c9c4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Expand Up @@ -11,7 +11,7 @@
"username": {
"type" : "string",
"description" : "The username of the user to disable",
"required" : false
"required" : true
}
},
"params": {
Expand Down
Expand Up @@ -11,7 +11,7 @@
"username": {
"type" : "string",
"description" : "The username of the user to enable",
"required" : false
"required" : true
}
},
"params": {
Expand Down
Expand Up @@ -5,6 +5,8 @@
"url": {
"path": "/_security/privilege/{application}/{name}",
"paths": [
"/_security/privilege",
"/_security/privilege/{application}",
"/_security/privilege/{application}/{name}"
],
"parts": {
Expand Down

0 comments on commit 80c9c4a

Please sign in to comment.