Why it’s shadily converts LocalDateTime to OffsetDateTime, so that adds Z suffix? Isn’t it supposed to be string.map(LocalDateTime.parse(_))(DateTimeFormatter.ISO_LOCAL_DATE_TIME.format).schema(Schema.schemaForLocalDateTime)?
I understand it’d break compatibility, but what’s the logic here?
There’s a comment on the test case that explains it:
// Because there is no separate standard for local date time, we encode it WITH timezone set to "Z"
// https://swagger.io/docs/specification/data-models/data-types/#string