no-trailing-leading-spaces-in-server-parameter-name
Overview
This rule belongs to the openapi-v3-apimatic-syntax-linting
ruleset and states that:
The name of the server parameter should not contain any leading or trailing white-space characters.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Warning |
Message | Leading or trailing white-space character found in server parameter name. |
Code | OPENAPI3APIMATICSYNTAX_L104 |
Type | Linting |
Rule System | Syntax |
Broad Category | OpenAPI Servers |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | openapi3 openapi syntax linting apimatic server parameter name leading trailing whitespace character |
Suggested Fixes
- Remove all leading or trailing white-space characters such as spaces, tabs, or line breaks from server parameter name.
For More Information
- https://docs.apimatic.io/specification-extensions/swagger-server-configuration-extensions/#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#server-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#server-variable-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md
- https://docs.apimatic.io/rulesets/overview/