public interface JsSpec
Modifier and Type | Method and Description |
---|---|
JsSpec |
nullable()
Returns the same spec with the nullable flag enabled
|
JsSpecParser |
parser()
Returns the deserializer used during the parsing process to parse an array of bytes or string
|
Set<SpecError> |
test(JsPath parentPath,
JsValue value)
verify if the given value satisfy this spec.
|
default Set<SpecError> |
test(JsValue value) |
JsSpec nullable()
JsSpecParser parser()
Set<SpecError> test(JsPath parentPath, JsValue value)
parentPath
- the path where the tested value is located.value
- the tested valueCopyright © 2022. All rights reserved.