no-server-url-trailing-slash
Overview
This rule belongs to the openapi-v3-apimatic-syntax-linting
ruleset and states that:
Some tooling forgets to strip trailing slashes off when it's joining the servers.url with paths, and you can get awkward URLs like https://example.com/api//pets. Best to just strip them off yourself.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Warning |
Message | Server URL should not have a trailing slash. |
Code | OPENAPI3APIMATICSYNTAX_L102 |
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 url trailing slash |
Suggested Fixes
- Ensure that there is no trailing slash in server url.