-
Notifications
You must be signed in to change notification settings - Fork 163
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
Respekt default annotations on primitive schemas #715
Labels
Comments
/bounty $125 |
💎 $125 bounty • ZIOSteps to solve:
Thank you for contributing to zio/zio-schema! Add a bounty • Share on socials
|
987Nabil
added a commit
to 987Nabil/zio-schema
that referenced
this issue
Aug 30, 2024
Add Schema.defaultValue to set default of a schema
💡 @987Nabil submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
987Nabil
added a commit
to 987Nabil/zio-schema
that referenced
this issue
Sep 1, 2024
Add `Schema#default` to set default of a schema
jdegoes
pushed a commit
that referenced
this issue
Sep 3, 2024
🎉🎈 @987Nabil has been awarded $125! 🎈🎊 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently,
Schema[Int].annotate(fieldDefaultValue(5))
would result in a schema that would return0
for a call ofdefaultValue
instead of5
. We should fix this.Adding validation annotations for primitive schemas works for example.
The text was updated successfully, but these errors were encountered: