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
A validate combinator on DecodeResult would make it easier to apply logic to json structures that parsed correctly but require further validation. For example, with this feature we might parse a Latitude instance and constrain its value like so:
DecodeJson(c =>for {
lat <- (c --\"lat").as[Double].validate(_.abs <=90d, "Latitude must be within (+/-)90")
} yieldLatitude(lat))
In order to preserve the cursor history without adding an addition argument to validate, this issue depends on #134.
The text was updated successfully, but these errors were encountered:
A
validate
combinator onDecodeResult
would make it easier to apply logic to json structures that parsed correctly but require further validation. For example, with this feature we might parse aLatitude
instance and constrain its value like so:In order to preserve the cursor history without adding an addition argument to
validate
, this issue depends on #134.The text was updated successfully, but these errors were encountered: