Skip to content
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

HTML5 Placeholder in Parameter Fields #528

Closed
notmattlucas opened this issue Aug 12, 2014 · 2 comments
Closed

HTML5 Placeholder in Parameter Fields #528

notmattlucas opened this issue Aug 12, 2014 · 2 comments

Comments

@notmattlucas
Copy link

Hi,

Following on from my groups post I think it'd be useful to utilize the HTML5 placeholder attribute for parameter input fields within swagger UI - basically as a helpful cue for the user.

For example, if I had a date field the input box could start with a placeholder of 'yyyy-mm-dd' - the default value couldn't be used here as the format suggestion isn't actually valid input.

I guess there'd need to be an additional field on the annotation, e.g.

@ApiParam(placeholder="yyyy-mm-dd")

I'd be more than happy to contribute the change myself if you guys think that it's worthwhile

Cheers

@fehguy
Copy link
Contributor

fehguy commented Jan 28, 2015

Hi @lucas1000001 would this be better in the defaultValue?

@fehguy
Copy link
Contributor

fehguy commented Jan 28, 2015

Please feel free to open an issue on swagger-core for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants