Skip to main content

server-parameter-cannot-be-array

Overview

This rule belongs to the openapi-v3-apimatic-linting 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.
CodeOPENAPI3APIMATIC_L121
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