java - Jackson JSON schema date -


i generate json schema of class java.util.date field. fields type date getting:

"fieldname" : { "type": "integer", "format": "utc_millisec" }

what like:

"fieldname" :{ "type": "string", "format": "date-time" }

i configuration global pojos , not specific pojo. so, annotation on specific class not me.

thanks!

if want output date string should disable configuration serializationfeature.write_dates_as_timestamps on ojectmapper instances. every date object converted written string. see this link more information on serialisation features.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -