FAQ

  • GitHub GitHub Repo stars
  • Discord Discord Server
  • ✨ New! Try the OpenAPI Doctor ✨ The OpenAPI Doctor

    owaspDefineErrorDefinition


    owaspDefineErrorDefinition will check that an error response of either 400, 422 or 4XX has been defined.

    Example ruleset configuration

    my-security-rule:
      description: Make sure operation defines error responses
      type: validation
      given: $.paths..responses
      then:
        function: owaspDefineErrorDefinition
    

    Used by the following rules: