Roles requirements
Your users need to know what authentication methods are required, but they also have to know what access level or roles are needed to start sending requests to specific endpoints. There’s currently no way to describe it in OpenAPI: that’s why we are introducing x-rolesRequirements. Combined with security schemes, it gives your users a complete picture.
The x-rolesRequirements property can be added to any OpenAPI/AsyncAPI operation. It can either be an array of strings or a string:
paths:
/clusters:
post:
summary: Create a new cluster
x-rolesRequirements:
- Organization owner
- Product owner
# ... rest of operation
/clusters/{id}:
get:
summary: Get cluster details
x-rolesRequirements: "Cluster privileges: read"
# ... rest of operation

Changes to role requirements don’t create changelog entries: you can update them without affecting version history.
Learn more about it in our help center
As always, don’t hesitate to reach out if you have any feedback.