-
Method Summary
Returns the same spec with the nullable flag enabled
Returns the deserializer used during the parsing process to parse an array of bytes or string
verify if the given value satisfy this spec.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
nullable
Description copied from interface: JsSpec
Returns the same spec with the nullable flag enabled
- Specified by:
nullable
in interface JsSpec
- Returns:
- the same spec with the nullable flag enabled
-
parser
Description copied from interface: JsSpec
Returns the deserializer used during the parsing process to parse an array of bytes or string
- Specified by:
parser
in interface JsSpec
- Returns:
- the deserializer used during the parsing process to parse an array of bytes or string
into a json value
-
test
Description copied from interface: JsSpec
verify if the given value satisfy this spec.
- Specified by:
test
in interface JsSpec
- Parameters:
parentPath
- the path where the tested value is located.
value
- the tested value
- Returns:
- a set of path/error pairs