Skip to main content

Const And Not Schema Fields

ItemDescription
Full Fuzzer NameConstAndNotSchemaFieldsFuzzer
Log KeyCANSF
DescriptionViolates OpenAPI 3.1 const constraints (by sending a different value of the same type) and OpenAPI 3.0/3.1 not schemas (by sending a value matching the forbidden not schema).
Enabled by default?Yes (included in ci, crash, and full profiles)
Target field typesFields declaring const or not schema constraints
Expected result when fuzzed field is required4XX
Expected result when fuzzed field is optional4XX
Expected result when fuzzed value is not matching field pattern4XX
Fuzzing logicFor const fields, mutates the constant value (number + 1, !boolean, or string + "_violatedConst"). For not schemas, resolves the forbidden schema and synthesizes a value matching its const, enum, default, example, minimum, or type.
Conditions when this fuzzer will be skippedWhen a field does not declare a const or not schema constraint.
HTTP methods that will be skippedNone
ReportingReports error if the server accepts the violated constraint with 2XX or crashes with 5XX; reports success when rejected with 4XX.