You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I have a securitySchemes defined in the documentation. I'd like to change the scalarConfig to include a default bearer token when I pass it as a query param.
This way I could generate documentation with sane defaults for a specific user.
https://localhost:8080/swagger?token=...
I'm open to idea's and happy to provide a PR once we have a clearer path forward.
The text was updated successfully, but these errors were encountered:
matvp91
changed the title
[feat] Intercept the request for creating dynamic a scalarConfig.
[feat] Intercept the request for creating a dynamic scalarConfig.
Oct 29, 2024
The swagger plugin creates a new Elysia instance under the hood and threats the arguments as static.
Let's say I have a
securitySchemes
defined in the documentation. I'd like to change thescalarConfig
to include a default bearer token when I pass it as a query param.This way I could generate documentation with sane defaults for a specific user.
I'm open to idea's and happy to provide a PR once we have a clearer path forward.
The text was updated successfully, but these errors were encountered: