Skip to main content



This rule belongs to the apimatic-codegen-validation ruleset and states that:

The value provided for the expected response body in a test case must be valid and correspond with the type definition(s) of the response(s) indicated by the expected status.

Maximum SeverityError
MessageThe test value provided for expected body is invalid.
Rule SystemSemantic
Broad CategoryTest Cases
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic code generation codegen sdks portal docs validation apimatic response body test case endpoint

Suggested Fixes

  • Check the test value against the corresponding response type definition(s) and fix any issues.
  • Adjust the response type definition(s) to match the expected body value.
  • Disable the test case by turning off the Enabled flag.

For More Information