Skip to main content

valid-response-primitive-type

Overview

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

Some types like "File" are not applicable to responses and, therefore, should not be used in response definitions.

PropertyValue
EnabledYes
Maximum SeverityError
MessageType specified is not applicable to responses.
CodeAPIMATICPRE_V309
TypeValidation
Rule SystemSemantic
Broad CategoryEndpoint Responses
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic type primitive type scalar type response endpoint

Suggested Fixes

  • Use only valid and supported primitive types for responses e.g. "Binary" instead of "File".

For More Information