What is the correct way to declare a date in an OpenAPI / Swagger-file?
The OpenAPI Specification says that you must use: type: string format: date # or date-time The patterns supported are defined in RFC 3339, section 5.6 (effectively ISO 8601) and examples are provided in section 5.8. So for date values should look like “2018-03-20” and for date-time, “2018-03-20T09:12:28Z”. As such, when using date or date-time, the … Read more