You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure what you're trying to achieve, but I think there are two ways. In your code above you explicitly use .get in the .map invocation, so that's what is being used.
Option 2 is more manual, and involves mirroring what implicit Option schema derivation does - constructing an SOption schema, with the provided toOption method:
Tapir version: 1.9.5
Scala version: 2.13.12
Describe the bug
Can't find a way to keep the validator in case of an optional field
How to reproduce?
https://scastie.scala-lang.org/GVBxeZypSA6DiBcUa1dFGw
Additional information
it will be great if
validator.contramap
supported option transformation:The text was updated successfully, but these errors were encountered: