Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- job.fields.collect(field => field.valueBox match {
- case Failure(err, _, _) =>
- err
- case Empty if field.required_? =>
- s"${field.name} is required"
- case Full(x: String) if field.required_? && x.trim.isEmpty =>
- s"${field.name} is required"
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement