Validation
November 12, 2018 ยท View on GitHub
maxRetries
maxRetries is best when combined with delay. The request continues to execute until the expected validated response is received.
Valid Types for Validation
stringstring.hexstring.emailstring.ip:arrow_right: IP Addressstring.urlstring.uri:arrow_right: Same as String.Urlstring.lowercase:arrow_right: Only lowercase lettersstring.uppercase:arrow_right: Only Uppercase Lettersstring.base64
booleanbool:arrow_right: Same as Booleanobjectnumberarraynull
Usage
All types can be used in uppercase or lowercase letters. They will be converted into lowercase letters automatically.
Match exactly one Type
validate:
- jsonpath: content.id
type: [ string ]
Match at least one of the given Types
validate:
- jsonpath: content.id
type: [ string, string.hex, "null", boolean]