grape-swagger icon indicating copy to clipboard operation
grape-swagger copied to clipboard

Password input field

Open synth opened this issue 9 years ago • 3 comments

My api has an endpoint to authenticate users and get a token via authentication of email and password. I know the swagger spec supports specifying a password format and swagger-ui will turn the input into a password. However, I'm not sure if this is a swagger 2.0 spec feature or not.

is it possible to specify in grape-swagger that a parameter is a password parameter yielding a password input in swagger-ui?

synth avatar Feb 12 '16 08:02 synth

Are you saying that's a swagger 2 feature? There's a swagger 2 branch ATM, you could definitely contribute password support change into it.

dblock avatar Feb 12 '16 20:02 dblock

I can't find reference to it in the 1.2 spec, so I'm guessing its swagger 2 feature. We're still on 1.2 unfortunately and I won't be able to dev and test on it at this time.

synth avatar Feb 13 '16 21:02 synth

I've labelled this as a new feature.

dblock avatar Feb 14 '16 14:02 dblock