django-ninja-extra icon indicating copy to clipboard operation
django-ninja-extra copied to clipboard

Question: Possibility to export permissions with OpenAPI schema

Open unode opened this issue 1 month ago • 7 comments

Hi @eadwinCode,

I'm trying to find an automated way to export all the permissions used by the project on a more human readable format. Django Ninja provides manage.py export_openapi_schema and I see that authentication (JWTAuth) is currently exported but permissions aren't.

Is there any way this could be supported or otherwise exported?

The OpenAPI spec doesn't have an explicit field but recommends using x- fields for such needs.

unode avatar Dec 02 '25 16:12 unode