Skip to content

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

Closed
madisparn opened this issue May 6, 2014 · 9 comments
Closed

add support for date-time property #462

madisparn opened this issue May 6, 2014 · 9 comments

Comments

@madisparn
Copy link

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?

@kylejginavan
Copy link
Contributor

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!

@krisalyssa
Copy link

+1 for semantic HTML. :-)

@WizardOfOgz
Copy link

Date and time pickers would be great. Support for HTML5 date/datetime inputs varies greatly, but there are plenty of good libraries out there.

@anuforok
Copy link

anuforok commented Jun 2, 2014

+1. This would be a huge addition.

@vijayan007
Copy link

At least in the UI it should show format is date-time

@fehguy
Copy link
Contributor

fehguy commented Aug 2, 2014

this will be in the next version of swagger ui

@fehguy fehguy closed this as completed Aug 2, 2014
@mirelon
Copy link

mirelon commented Mar 25, 2015

Why is this closed? What version fixed this?

@twocabbages
Copy link

+1.

@spati-java
Copy link

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 ?

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

10 participants