FAQ

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

    owaspStringRestricted


    owaspCheckErrorResponse will check string schema types specify a format, pattern, enum, or const

    Example ruleset configuration

    my-security-rule:
      description: strings must specify a `format`, `pattern`, `enum`, or `const`
      type: validation
      given: $
      then:
        function: owaspStringRestricted
    

    Used by the following rules: