Skip to main content

valid-server-parameter-type

Overview

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

Valid types for a server parameter include: String, Number and a String/Number enumeration. No other types must be used.

PropertyValue
EnabledYes
Maximum SeverityError
MessageServer parameter type is invalid.
CodeOPENAPI3APIMATIC_L120
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Servers
Products ImpactedAPI Transformer, Code Generation
Tagsopenapi3 openapi apimatic semantic linting server parameter server configuration type

Suggested Fixes

  • Make sure the server parameter uses a string or number type only.
  • Object or array types are not allowed for server parameters.

For More Information