Skip to main content

server-parameter-cannot-be-map-object

Overview

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

Server URL parameters cannot be declared as maps or objects. Only primitive types like string, number or string/number enumeration types are allowed.

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

Suggested Fixes

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

For More Information