-
-
Notifications
You must be signed in to change notification settings - Fork 484
Bugs/typed tuple on zod #1593
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
Bugs/typed tuple on zod #1593
Conversation
Run |
More issues that I would like to know if there is a better solution:
|
I have no answer for that I assume casting it is the only way. |
I think this is done now. Please review and comment (and merge) |
tests are still failing? |
Ok. I see. Fakerjs got triggered because I accidentially re-used a existing test oas file. I reverted the hijacked file and added an explicit one. Hope thats ok this way. |
Running build now |
Did huskies job and formatted the code |
Status
DONE
Description
Support for typed tuples as they are produced by pydantic v2.0+
Fix #1592
generateZodValidationSchemaDefinition
, thearray
switch case has to be altered to adhereprefixItems
constraints. IfprefixItems
exists,tuple
has to be pushed into functions instead of array,