Hey, is there a way to specify the format for a property of a dto in the OpenAPI json? E.g. I'm trying to make it specify a property
startDate
is a date. Currently in my swagger.json it has:
"startDate": {
"example": "2021-01-01",
"description": null,
"type": "string"
},
but (i think) i'm expecting:
"startDate": {
"example": "2021-01-01",
"description": null,
"type": "string",
"format": "date"
},
I've defined my bidi lens as:
BiDiMapping<String, LocalDate>({ LocalDate.parse(it) }, { it.format(DateTimeFormatter.ISO_LOCAL_DATE) })