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
{{ message }}
Repository navigation
Custom names for security schemes in Documentation
#3849
APIKEY_1 then shows up in API reference sites and in clients generated from the document. There is no way to choose
the name, and adding another scheme of the same type can shift the counters.
Idea: an optional id on the security declarations (HeaderSecurity, BearerSecurity, OAuth2Security, etc.),
used as the scheme name, with the current generated name as the fallback:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Security schemes in the generated document are named from their type and a counter
(
#ensureUniqSecuritySchemaNameindocumentation.ts):APIKEY_1then shows up in API reference sites and in clients generated from the document. There is no way to choosethe name, and adding another scheme of the same type can shift the counters.
Idea: an optional
idon the security declarations (HeaderSecurity,BearerSecurity,OAuth2Security, etc.),used as the scheme name, with the current generated name as the fallback:
This would mirror how
.meta({ id })names schema components. Would you accept a PR for this? Happy to implement it,including JSDoc and tests.
All reactions