no-complex-types-in-non-body-parameters
Overview
This rule belongs to the apimatic-codegen-validation ruleset and states that:
Use of complex model types for non-body parameters (template, header) is currently not supported. Only enumeration or primitive types are allowed.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Endpoint has a parameter of a type which cannot be serialized. |
| Code | APIMATICCODEGEN_V073 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Endpoint Parameters |
| Products Impacted | Code Generation, Developer Experience Portal |
| Tags | apimatic code generation codegen sdks portal docs validation apimatic non-body parameter endpoint |
Suggested Fixes
- Avoid use of complex models for parameters that are not sent in the request body.