Skip to main content

valid-server-parameter-type

Overview

This rule belongs to the apimatic-preliminary-validation 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 has an invalid type.
CodeAPIMATICPRE_V048
TypeValidation
Rule SystemSemantic
Broad CategoryServer Configuration Parameters
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic type parameter template path server server configuration api

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