Closed cristiang777 closed 2 days ago
bump, encountering the same issue.
Did you ever find a fix?
Unfortunately not
This just happened to me with the sentry openapi schema, which is openapi version v3.0.3. I tried to load the schema directly with openapi-pydantic (see here) which worked fine. It seems like openapi-python-client bundles its own version of openapi-pydantic which does not work with v3.0.3. I did a quick and dirty try to replace the included version (in openapi_python_client/schema/) with the latest upstream openapi-pydantic which needed some little adjustments but worked fine overall. @dbanty are there any special reasons for the vendored version?
It needed a bunch of customizations to work the way I needed. It could be that the latest version works much better, but it'd take a lot of validation to be sure
required
needs to be at the same level as properties
and in the example given, it's at the level of schema
, which is wrong.
The required
functionality is working just fine.
This ticket can be closed, imo.
I think the real problem here is that the errors Pydantic gives are not very helpful. So a lot of people end up with the same error message as this issue. I agree that I don't think required
is the problem, and we probably need new issues for other problems.
Hi, I'm sure this is related to my project, not to the openapi-python-client, but needed some help. When running the app, I get the following errors:
And here's some of api.yaml file that I'm using:
Any thoughts on what's wrong?