com.eclipsesource.schema.internal.validation.Rule
See theRule companion trait
Attributes
-
Companion
-
trait
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Self type
-
Members list
Turn a A => Rule[B, C] into a Rule[(A, B), C]
Turn a A => Rule[B, C] into a Rule[(A, B), C]
val passRule = From[JsValue] { __ =>
((__ \ "password").read(notEmpty) ~ (__ \ "verify").read(notEmpty))
.tupled.compose(Rule.uncurry(Rules.equalTo[String]).repath(_ => (Path \ "verify")))
}
Attributes