no-trailing-leading-spaces-in-parameter-name
Overview
This rule belongs to the openapi-v3-apimatic-syntax-linting
ruleset and states that:
The name of a 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 parameter name. |
Code | OPENAPI3APIMATICSYNTAX_L330 |
Type | Linting |
Rule System | Syntax |
Broad Category | OpenAPI Parameters |
Products Impacted | Developer Experience Portal |
Tags | openapi3 openapi syntax linting apimatic parameter name RFC6570 leading trailing whitespace character |
Suggested Fixes
- Ensure that parameter name follows the regex pattern ^[A-Za-z0-9?_()]+$.
- Remove all leading or trailing white-space characters such as spaces, tabs, or line breaks from parameter name.