Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageEndpoint has a parameter of a type which cannot be serialized.
CodeAPIMATICCODEGEN_V073
TypeValidation
Rule SystemSemantic
Broad CategoryEndpoint Parameters
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic 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.

For More Information