Skip to main content

server-parameter-cannot-be-array

Overview

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

Server URL parameters cannot be declared as arrays. Only primitive types like string, number or string/number enumeration types are allowed. Array type server parameters will be automatically converted to non-array entities.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageServer URL parameter declared as an array has been marked as a non-array entity.
CodeAPIMATICPOSTPROCESS_V001
TypeValidation
Rule SystemSemantic
Broad CategoryServer Configuration
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagsapimatic postprocessing validation array type parameter server configuration api

Suggested Fixes

  • Use only supported types for server configuration parameters, to avoid this issue: string, number, enumeration

For More Information