Skip to main content

valid-test-case-expected-body-value

Overview

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe test value provided for expected body is invalid.
CodeAPIMATICCODEGEN_V169
TypeValidation
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