Closed arquicanedo closed 1 year ago
Hey @arquicanedo, thank you for opening this! I've checked the original specification, and they do not have that strict rules anymore - https://swagger.io/docs/specification/data-models/data-types#format.
So, since they allow to use any other format, the proper solution could be either extending the enumeration to provide more options or removing it from the data classes.
The enumeration extension looks more applicable from a backward compatibility perspective and I will try to publish the change soon, or if you have some time, feel free to contribute! 👍
Published as v1.1.10
Describe the bug I'm trying to parse the 1password yaml spec (https://api.apis.guru/v2/specs/1password.local/connect/1.5.7/openapi.yaml). Openapi3-parser failed with this error.
Adding
URL
toStringFormat
inenumeration.py
does the trick. Not sure if this is not supposed to be this way but now I'm able to parse this file.To Reproduce Steps to reproduce the behavior:
specification = parse('collection/1password.yaml')
Expected behavior Correctly parse this spec.
System details (please complete the following information):
Additional context None