owaspStringLimit
owaspCheckErrorResponse will check string
schema types also define maxLength
, enum
, or const
Example ruleset configuration
my-security-rule:
description: strings should define `maxLength`, `enum`, or `const`
type: validation
given: $
then:
function: owaspStringLimit
Used by the following rules: