Open fjtirado opened 3 hours ago
Shouldn't this be handled in the UI instead? Or maybe have both formats in the API?
there is not type information in json and the variables are arbitrary data, so it will be difficult to distinguish between a real number and a number that represent a date. By sendings a string in iso format, UI, if needed, might use a pattern to replace them by the chosen representation format. By default, an ISO date string will be writen. Also, this json might be manipulated before being sent to the UI through jq filters and date manipulation (strange case, but posible) it is "easier" if it is a string
Description
In general, for display representation purposes and also for jq filtering, Dates should be handled as string. For example, if an openapi server returns a date, the representation of the workflow model that is written into the UI is
Implementation ideas
Add disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS) to ObjectMapper.