`I have a schema for a field like this :
"StartDate":{ "type":"string", "format":"date-time" }
and a mapper is as below :
"StartDate":{ "path": "policy.startDate.shortformat" }
the Date.shortFormat will give value as “05/09/2024” which is of type String.
but still I’m getting string:format=date-time is not a valid FormattedjsonType for class java.util.String when trying to assign date string to a field in schema.
I tried making changes to schema like below :
-
`"StartDate":{ "type":"string" }`
-
`"StartDate":{ "type":"string", "format":"date" } `
however none of them worked.
any help would be greatly appreciated.`