Skip to main content

valid-file-type-parameter-formats

Overview

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

File type can only be used for a parameter with format set as "Body" or "Form".

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe current parameter location/format does not allow a "File" type to be used.
CodeAPIMATICPRE_V211
TypeValidation
Rule SystemSemantic
Broad CategoryEndpoint Parameters
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic file type body form parameter endpoint

Suggested Fixes

  • Change parameter format to "Body" or "Form".
  • Remove the parameter with the invalid format.
  • Change parameter type to "String".

For More Information