non-empty-server-variables-key
Overview
This rule belongs to the openapi-v3-apimatic-linting
ruleset and states that:
Variable key in the server object of the API must specify a non-empty non-null name.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Server variable key is null or empty. |
Code | OPENAPI3APIMATIC_L117 |
Type | Linting |
Rule System | Semantic |
Broad Category | OpenAPI Servers |
Products Impacted | API Transformer, Code Generation |
Tags | openapi3 openapi apimatic semantic linting server variable |
Suggested Fixes
- Set a variable key for server object.
- Ensure that the server variable key is not null or empty.