Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1008 Bytes

File metadata and controls

42 lines (31 loc) · 1008 Bytes

Validation

max_retries

max_retries 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

someItem: Type(String)

Match at least one of the given Types

# use the | character as a seperator
someItem: Type(String | String.Hex | Null | Boolean)