49 / 81 · Module 14 — External Automated Testing of Mule Integrations · filtered: interview← prev⊞ allnext →
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"