Schema validation checks whether an API request conforms to its defined data schema. A WAF can compare request payloads with the API specification and reject invalid requests with a useful error message and status code. section 9.4
This gives the WAF a structured way to distinguish acceptable API input from malformed or suspicious traffic, adding protection beyond application-level attacks. section 9.4
Rejecting a malicious request
A WAF may reject a request such as GET /payments?filter=' or 1=1-- when its content indicates SQL injection. Schema validation complements this filtering by enforcing the API specification for request payloads. section 9.4






