14.14Schema validation
Suppose OpenAPI says response:
{
"customerId": "string",
"salesforceId": "string",
"success": true
}
Your tests should validate the response against the OpenAPI schema, not only individual fields.
Conceptually:
response
↓
OpenAPI validator
↓
schema valid?
This catches accidental changes such as:
salesforceId
→ salesForceId
or:
boolean success
→ string "true"