public interface JsonArrayValidationBuilderKey extends JsonObjectValidationBuilderKey
| Modifier and Type | Method and Description |
|---|---|
ValidationBuilderCore |
index(int index)
Validates the element at the specified
index.
|
ValidationBuilderArray |
indexAll(int index)
An
JsonArray is expected at the
given index and each of its elements
will be validated. |
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. |
ValidationBuilderTarget |
key(String validationKey)
The key for the validation.
|
jsonPathAllValidationBuilderTarget key(String validationKey)
JsonPath and required you to pass the
element(s) to validate right after.key in interface JsonObjectValidationBuilderKeykey in interface ValidationBuilderKeyValidationBuilderCore jsonPath(String jsonPath)
JsonPath.jsonPath in interface JsonObjectValidationBuilderKeyValidationBuilderArray 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.
jsonPathAll in interface JsonObjectValidationBuilderKeyValidationBuilderCore index(int index)
ValidationBuilderArray indexAll(int index)
JsonArray is expected at the
given index and each of its elements
will be validated.
Each validation key will be "[X]", where "X" is the position of the validated element in the array.
Copyright © 2017. All rights reserved.