-
-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Endpoints are not created for routes with Pydantic model default values #944
Comments
If following the description on json-schema.org
I think this would suggest a behavior of ignoring values that do not validate against the schema (treating it as missing instead). |
Describe the bug
When attempting to generate the client for an endpoint containing a route with a default value represented by a Pydantic model, the client generation fails. Specifically, the issue arises when the default value is set as a Pydantic model, such as the example below:
The generated client results in the following error message:
This issue is caused by a condition not being met in the union.py file.
To Reproduce
OpenAPI Spec File
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: