Skip to main content

required-server-parameter-schema-default

Overview

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

Server parameter definition in the server configuration of the API must specify a non-empty, non-null default value in schema object.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired schema default value is missing for the server parameter.
CodeOPENAPI3APIMATIC_L125
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Servers
Products ImpactedAPI Transformer, Code Generation
Tagsopenapi3 openapi apimatic semantic linting server parameter default schema schema object

Suggested Fixes

  • Set a default value in schema for each server parameter. Default value must not be null or empty.

For More Information