Skip to content
This repository was archived by the owner on Mar 26, 2021. It is now read-only.

Files

Latest commit

 

History

History
45 lines (34 loc) · 1 KB

VALIDATION.md

File metadata and controls

45 lines (34 loc) · 1 KB

Validation

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 ➡️ IP Address
    • string.url
    • string.uri ➡️ Same as String.Url
    • string.lowercase ➡️ Only lowercase letters
    • string.uppercase ➡️ Only Uppercase Letters
    • string.base64
  • boolean
  • bool ➡️ 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]