zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

[Feature Request] Add allow/deny rules to the output in the openapi plugin

Open lsmith77 opened this issue 5 months ago • 0 comments

Is your feature request related to a problem? Please describe. In the schema.zmodel we can express the bulk of our authorization related rules. It would be amazing if this would automatically be included in openapi spec file.

Describe the solution you'd like Based on the @@allow / @@deny annotations in the model, the relevant 403 response documentation is automatically extended with a textual representation.

Image

Describe alternatives you've considered Some other way in code to add such information manually (also for other responses) so that it is automatically included when regenerating the openapi json spec file.

Additional context OpenAPI does not cover anything beyond authentication it seems: https://swagger.io/docs/specification/v3_0/authentication/

lsmith77 avatar Jul 11 '25 12:07 lsmith77