com.eclipsesource.schema.internal.validation.Rule
See theRule companion object
Attributes
-
Companion
-
object
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
Members list
This methods allows you to modify the Path of errors (if the result is a Failure) when aplying the Rule
This methods allows you to modify the Path of errors (if the result is a Failure) when aplying the Rule
Attributes
Create a new Rule the validate this Rule and r2 simultaneously If this and r2 both fail, all the error are returned
Create a new Rule the validate this Rule and r2 simultaneously If this and r2 both fail, all the error are returned
val valid = Json.obj(
"firstname" -> "Julien",
"lastname" -> "Tournay")
val composed = notEmpty |+| minLength(3)
(Path \ "firstname").read(composed).validate(valid) // Success("Julien")
Attributes
Value parameters
-
data
-
The data to validate
Attributes
-
Returns
-
The Result of validating the data
-
Inherited from:
-
RuleLike