Skip to main content

test-case-expected-body-value-restrictions

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 obey all restrictions placed in the corresponding response type definition(s).

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe test value provided for expected body violates type restrictions.
CodeAPIMATICCODEGEN_V170
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

  • Adjust the test value so that it meets all type restrictions present in the corresponding response definition(s).
  • Remove the restrictions from the corresponding response type definition(s).
  • Disable the test case by turning off the Enabled flag.

For More Information