Skip to content

Commit

Permalink
Fix request body for roles endpoint for PUT method in openapi spec
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Jul 2, 2024
1 parent 5a71008 commit af6c4c7
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion docs/source/specs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2054,7 +2054,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RoleWithAccess"
"$ref": "#/components/schemas/RolePut"
}
}
},
Expand Down Expand Up @@ -4222,6 +4222,28 @@
}
}
},
"RolePut": {
"allOf": [
{
"$ref": "#/components/schemas/RolePatch"
},
{
"type": "object",
"required": [
"access"
],
"properties": {
"access": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Access"
},
"description": "List of access permissions. This array can be empty."
}
}
}
]
},
"RoleWithAccess": {
"allOf": [
{
Expand Down

0 comments on commit af6c4c7

Please sign in to comment.