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

Update documentation for JSR310 and Joda dates #1161

Closed
cbornet opened this issue Feb 2, 2016 · 1 comment

Comments

@cbornet
Copy link
Contributor

commented Feb 2, 2016

See #1021 #536 #893
There is a way to correctly map the "Date" and "DateTime" types to their corresponding swagger types:

  • Substitute "Date" types (java.util.LocalDate, org.joda.time.LocalDate) by java.sql.Date
  • Substitute "DateTime" types (java.util.ZonedDateTime, org.joda.time.LocalDateTime, ...) by java.util.Date
docket
.directModelSubstitute(LocalDate.class, java.sql.Date.class)
.directModelSubstitute(LocalDateTime.class, java.util.Date.class)

The current doc suggests to subtitute by String but this loses the information on the format.

@dilipkrish

This comment has been minimized.

Copy link
Member

commented Feb 2, 2016

PR? all the docs are here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.