Skip to main content

valid-server-parameter-schema-default

Overview

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

The schema default value specified in the server parameter definition must be valid according to the type definition of this parameter.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDefault schema value of server parameter is invalid.
CodeOPENAPI3APIMATIC_L126
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Servers
Products ImpactedAPI Transformer, Code Generation
Tagsopenapi3 openapi apimatic semantic linting server parameter default schema schema object

Suggested Fixes

  • Make sure that the default value corresponds with the type definition of the server parameter.
  • Default value must not be null or empty.

For More Information