Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageServer URL should not have a trailing slash.
CodeOPENAPI3APIMATICSYNTAX_L102
TypeLinting
Rule SystemSyntax
Broad CategoryOpenAPI Servers
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi syntax linting apimatic server url trailing slash

Suggested Fixes

  • Ensure that there is no trailing slash in server url.

For More Information