• GitHub GitHub Repo stars
  • Discord Discord Server
  • falsy

    falsy will check that a given JSON Path does not exist, or has been not defined or is empty.

    The value should not be true or an empty string "" or a null object

    Example ruleset configuration

      description: This is an important rule
      message: "'chicken' or 'nugget' has been defined! Oh no! You need to remove it!"
      given: $.some.path
        - field: chicken
          function: falsy
        - field: nugget
          function: falsy

    View Spectral Equivalent

    View Function Source