-
Notifications
You must be signed in to change notification settings - Fork 10
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
Date rendering #40
Comments
Did you look at the tests? There might be a hint (if it has not broken for some reason) |
Thanks. Yes, I was looking at the tests. The only difference I can see with my code is mine is not XML. I will try with your exact code in my project and see what comes out. |
That is probably your answer; the code relies on data picked up by Enunciate's xml module, as far as I recall. |
I see, thanks |
My point is; we were using XML annotations as input. This module could probably be fixed to handle other types as well. In any event, this is all the help I can provide you. |
Yep. If I were to add support for dates for jackson2, where would I start? |
It is 2 years since I touched it last. 3 or 4 since I worked on in earnest. So I could not tell you, off hand. Maybe use the XML based date-tests to find the code that is relevant to dates. Sorry, not much help. But I do not have time (or interest) in diving deeper. |
First of all, thanks for this module. I can generate everything fine except dates with which I have an issue. If I use Java Date then I get an integer in my openapi.yml file and if I use say a LocalDateTime I do get a string but with an unspecified format.
I had a quick check at the code and it appears to imply it should generate strings with the date-time format in both cases.
Can you let me know if I need to add some additional annotations or else?
(I use release 1.1.5)
The text was updated successfully, but these errors were encountered: