Skip to content

Commit

Permalink
Merge pull request RedHatInsights#1135 from lpichler/fix_put_role_end…
Browse files Browse the repository at this point in the history
…point

Fix request body for roles endpoint for PUT method in openapi spec
  • Loading branch information
lpichler authored Jul 9, 2024
2 parents aede468 + af6c4c7 commit 40e567c
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 40e567c

Please sign in to comment.