Skip to main content

server-parameter-cannot-be-map-object

Overview

This rule belongs to the apimatic-post-processing-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. Map/object type server parameters will be automatically converted to primitive entities.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageServer URL parameter declared as a map/object has been converted to a primitive entity.
CodeAPIMATICPOSTPROCESS_V002
TypeValidation
Rule SystemSemantic
Broad CategoryServer Configuration
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagsapimatic postprocessing validation map object 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