Skip to main content

server-parameter-cannot-be-map

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

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

PropertyValue
EnabledYes
Maximum SeverityError
MessageServer URL parameter declared as a map which is not allowed.
CodeOPENAPI3APIMATIC_L122
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Servers
Products ImpactedAPI Transformer, Code Generation
Tagsopenapi3 openapi apimatic semantic linting server parameter server configuration type url

Suggested Fixes

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

For More Information