Open dolfandringa opened 1 year ago
I saw the comment: Unfortunately https://github.com/meeshkan/openapi-typed is archived so I don't think it should be used. https://github.com/openapi-generators/openapi-python-client has a complete pydantic schema which is great, but isn't just a types package. It contains much more and it also depends on python>=3.8 while we depend on python>=3.7 so we can't depend on it. We could just slowly add type information to our own types.
The openapi specs have more information then the TypedDict's in
schemas.openapi
allow. This results in type errors if we override some of the fields as described in the docsFor instance this code:
Results in this error: