-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Re-fetch schema, when auth token is updated #458
Comments
Hi! this has come up before and we have a issue #342 for it. since we use the vanilla swagger-ui and not a old patched version of swagger-ui (as drf-yasg does), we would probably require a slightly different solution. i'm lacking the time to implement it at the moment. any help would be appreciated. |
I did Swagger-ui issue as feature: swagger-api/swagger-ui#7425 We have to wait until this feature completing. |
please review and test #552 |
closing this issue for now. feel free to comment if anything is missing or not working and we will follow-up. |
Schema visible depends user rights. Refresh to fetch schema, when authorization is changed.
Old package 'drf-yasg' has got this feature.
SWAGGER_SETTINGS = { 'REFETCH_SCHEMA_WITH_AUTH': True }
https://drf-yasg.readthedocs.io/en/stable/settings.html#refetch-schema-with-auth
We need this feature.
The text was updated successfully, but these errors were encountered: