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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Required schema default value is missing for the server parameter. |
Code | OPENAPI3APIMATIC_L125 |
Type | Linting |
Rule System | Semantic |
Broad Category | OpenAPI Servers |
Products Impacted | API Transformer, Code Generation |
Tags | openapi3 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
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#server-object
- https://docs.apimatic.io/specification-extensions/swagger-server-configuration-extensions/#parameter-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md
- https://docs.apimatic.io/rulesets/overview/