-
Notifications
You must be signed in to change notification settings - Fork 9.1k
add support for date-time property #462
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
Comments
I agree tt would be nice to set the input type to date for date data types, datetime for datetime data types, number for integer data types.. etc. This will give developers a date picker and other nice features. I know not all browsers support this yet, but lets use the semantic web! |
+1 for semantic HTML. :-) |
Date and time pickers would be great. Support for HTML5 date/datetime inputs varies greatly, but there are plenty of good libraries out there. |
+1. This would be a huge addition. |
At least in the UI it should show format is date-time |
this will be in the next version of swagger ui |
Why is this closed? What version fixed this? |
+1. |
Do we have solution for this issue, for a date field I want only the date in yyyy-mm-dd format (date property), but swagger is giving me date-time property which includes the time zone . I tried to use override schema class but it seems from 1.5 version of swagger-core they have removed override schema class , ModelConvertor class does not have addConvertor method either , 1.3 version mvn repo is not available, what is the alternative class to achieve this in 1.5 version? I also tried to change the ApiModelProperty and include dataType="date" but this did not help . Any suggestion for this ? |
api json:
"properties":{"DateTimeField":{"type":"string","format":"date-time"}
at the moment date is simply dispayed as string type in the ui.
is it possible to display it as date-time and create example response with correct value?
The text was updated successfully, but these errors were encountered: