-
-
Notifications
You must be signed in to change notification settings - Fork 227
Wrong data type generated #362
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
Comments
Hey @Kludex 👋. Trouble is actually that If my suspicions are correct, what we need to do is add support for non-object types in allOf. |
Actually I think #361 might solve this issue. It makes it so a single allOf will just pass through rather than attempting to generate a new type. I'll try this once that gets merged to confirm. |
Just doing a loop looking at older bugs, looks like this was fixed in 0.9.0. I tried generating with the spec and |
Describe the bug
The wrong data type is generated on the client.
To Reproduce
I have this model:
On the client, this is generated:
On FastAPI that's an (str, Enum), fwiw 🤔
Expected behavior
Well, it should be this:
There are follow up problems, but I believe it starts here.
OpenAPI Spec File
openapi.json.txt
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: