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.

example

Valid Types for Validation

  • string
    • string.hex
    • string.email
    • string.ip :arrow_right: IP Address
    • string.url
    • string.uri :arrow_right: Same as String.Url
    • string.lowercase :arrow_right: Only lowercase letters
    • string.uppercase :arrow_right: Only Uppercase Letters
    • string.base64
  • boolean
  • bool :arrow_right: Same as Boolean
  • object
  • number
  • array
  • null

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]