Skip to main content

allowed-test-case-body-match-mode

Overview

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

The body match mode specified in the test case (if not set to None) must be valid and applicable to the type(s) of the response(s) indicated by the expected status.

PropertyValue
EnabledYes
Maximum SeverityError
MessageBody match mode specified in the test case is not allowed for the response indicated by the expected status.
CodeAPIMATICCODEGEN_V168
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

  • Change body match mode in accordance with the type definition of the response linked in the test case.
  • For cases where a range is used in the expected status of the test case, the body match mode must be valid for all response types that fall under that range.
  • Set match mode to "None".
  • Disable the test case by turning off the Enabled flag.

For More Information