Skip to main content

server-parameter-cannot-be-array

Overview

This rule belongs to the apimatic-preliminary-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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageServer URL parameter declared as an array which is not allowed.
CodeAPIMATICPRE_V051
TypeValidation
Rule SystemSemantic
Broad CategoryServer Configuration Parameters
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic array type parameter server configuration api

Suggested Fixes

  • Change the type to one of the supported types: string, number, enumeration

For More Information