You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm kind of sorry to come again with this issue but I think changing the current default would improve the out of the box experience for new users a lot.
The idea is that the classes that represents an actual Date will be translated to a string with the correct format. (date-time if they have time information and date if they don't. All Classes that just encapsulate an instant moment in time (like Instant, util.Date, sql.Date andTimestamp) will be translated to an integer.
The text was updated successfully, but these errors were encountered:
Let my explain why I think that the current solution is kind of complicated.
By default enunciate 2.13.0 translates all your date types end up as "type" : "integer","format" : "int32".
I think that is not a good default because who would expect that all kind of date types will be translated to numbers?
I know it is possible to configure a different behavior if I change the enunciate.xml like this:
<jacksondateFormat="string"disabled="false" />
But as a new User I would not now that this config parameter exist.
Then all dates types will be translated to "type": "string", "format": "date-time". This is strange for types that represents a moment in time and also for LocalDate because that type has no time information at all.
I still think this would be a way better default then going all integer.
Also it seems that the enunciate version before (I've tested 2.12.1) used a different default. Some date types would be translated as strings (without type) and others as integers.
Hello again,
I'm kind of sorry to come again with this issue but I think changing the current default would improve the out of the box experience for new users a lot.
My proposal:
New Date Types
Old Date Types
The idea is that the classes that represents an actual Date will be translated to a string with the correct format. (date-time if they have time information and date if they don't. All Classes that just encapsulate an instant moment in time (like Instant, util.Date, sql.Date andTimestamp) will be translated to an integer.
The text was updated successfully, but these errors were encountered: