Replies: 1 comment
-
No, there isn't, but I also think it'll hurt performance. The way to achieve the desired behavior is to use Optional in pydantic with a None as the default value. Handle the rest on the python side. a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to add a default value for my typescript model.
This is my schema:
Expected:
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions