public interface JsonObjectValidationBuilderKey extends ValidationBuilderKey
| Modifier and Type | Method and Description |
|---|---|
ValidationBuilderCore |
jsonPath(String jsonPath)
Validates the element at the specified
JsonPath. |
ValidationBuilderArray |
jsonPathAll(String jsonPathToArray)
An
JsonArray is expected at the
given JsonPath and each of its elements
will be validated. |
ValidationBuilderArray |
jsonPathAll(String jsonPathToArray,
String validationKey)
An
JsonArray is expected at the
given JsonPath and each of its elements
will be validated. |
ValidationBuilderTarget |
key(String validationKey)
The key for the validation.
|
ValidationBuilderTarget key(String validationKey)
JsonPath and required you to pass the
element(s) to validate right after.key in interface ValidationBuilderKeyValidationBuilderCore jsonPath(String jsonPath)
JsonPath.ValidationBuilderArray jsonPathAll(String jsonPathToArray)
JsonArray is expected at the
given JsonPath and each of its elements
will be validated.
Each validation key will be the JsonPath
followed by "[X]", where "X" is the position of the validated
element in the array.
ValidationBuilderArray jsonPathAll(String jsonPathToArray, String validationKey)
JsonArray is expected at the
given JsonPath and each of its elements
will be validated.
Each validation key will be the specified validationKey
followed by "[X]", where "X" is the position of the validated
element in the array.
validationKey - the validation key to use instead of the
JsonPath.Copyright © 2017. All rights reserved.