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.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | The test value provided for expected body is invalid. |
| Code | APIMATICCODEGEN_V169 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Test Cases |
| Products Impacted | Code Generation, Developer Experience Portal |
| Tags | apimatic 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
Enabledflag.