Inspectors

Inspectors are inspection methods for evaluating data and are easiest explained through these examples expressed as text:

  • string equals "foo"
  • string matches /^[Fo][Oo][Oo]/
  • length(value) >= 3
  • IP address is loopback
  • IP address is private
  • data is gzip

Settings

Each inspector is unique and defines its own options, but there are common settings shared across all inspectors:

  • key: retrieves a value from an object for inspection
  • negate: reverses the outcome of an inspection (true becomes false and false becomes true)

If the inspector supports interpreting data types, then key can be omitted.