Repository navigation
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 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Is there a way to add a default value for my typescript model.
This is my schema:
Expected:
Cheers!
All reactions