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
Post a Comment