-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Use password input type for password fields #1177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@lifeBCE This looks like a very good feature. Couple of thought:
|
|
Yeah I spent some time trying to find the actual source but was unsuccessful. I'll take another look when I have some more time. |
|
added logic in b1efe88 |
|
Is this also working for @formdata ? in our API using swagger+ui we have formData on login API and password field on swagger-UI has visible characters. can we somehow show *** instead of plain text on formData which are password? |
|
It should be supported, yes. Just use the following: {
"type": "string",
"format": "password"
} |
|
I would like to use it in Java code. Do you have some annotation for it ? thx |
|
@fehguy Can you please answer my question ? How do i define that some String expected on API method is password, for swagger UI - as Backend we have swagger with JAX-RS. Is there any annotation so swagger will produce something for swagger-ui ? thank you in advance |
|
Sorry @to-kra this repo is for swagger-ui. Please open an issue on swagger-core for this--to be honest I don't think it exists, but that's the right place to ask. |
|
@fehguy I mean this is not just a backend part, I am talking about swagger-ui, to support password fields. |
No description provided.