FAQ

  • GitHub GitHub Repo stars
  • Discord Discord Server
  • truthy


    truthy will check that a given JSON Path exists, or has been defined.

    The value should not be false or an empty string "" or null

    Example ruleset configuration

    my-important-rule:
      description: This is an important rule
      message: "'chicken' or 'nugget' is missing! Oh no! You need to add it!"
      given: $.some.path
      then:
        - field: chicken
          function: truthy
        - field: nugget
          function: truthy
    

    View Spectral Equivalent


    View Function Source