Closed garydgregory closed 5 years ago
Hi @garydgregory,
When the format is date, OAI expects the value as per RFC3339 as mentioned below https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#dataTypes
Value specified in your input swagger file is in the format 'YYYY_MM_DD' which is not valid as per RFC3339.
Please change your date format to 'YYYY-MM-DD' will solve the issue.
Thanks, Mohammed
Hi, @garydgregory in case the solution @ymohdriz provided did not fix your issue, please open a new ticket or a PR so we can fix this. Thanks both.
This is a case where the SwaggerParser from 1.0.36 works fine but the conversion to the OpenAPI with 2.0.1 fails. Clearly the dates are in an unexpected format but I expect specs that parse in Swagger 2.0 to convert to OpenApi 3. Maybe the converted model can be decorated with a warning list?
while parsing: