add name tag to bearer input field #7743
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Motivation and Context
By default, swagger-ui does not save authorization bearer - see docs. fastapi does not yet enable users to change the swagger-ui configuration.
In the mean time I'd like to be able to use bitwarden, my password manager, to autofill this as a custom field. To do so, it needs to have some kind of selector
id
,name
,aria-label
, orplaceholder
.Since the username and password input fields in swagger-ui already have the
name
tag I followed that pattern.I understand this isn't the best place to add a fix but it is the easiest.
There are two additional benefits to adding this:
How Has This Been Tested?
I ran
npm run test
.Seeing as this is an extremely small change I wasn't sure if anything more would be appropriate.
Screenshots (if appropriate):
Checklist
My PR contains...
src/
is unmodified: changes to documentation, CI, metadata, etc.)package.json
)My changes...
Documentation
Automated tests