OpenAPI No Path Trailing Slash Error (Edit)

It is common to be explicit and consistent about whether or not to have a trailing slack on each API path

OpenAPIPathsDefault

Rule Definition

openapi-no-path-trailing-slash-error.yaml
{"openapi-no-path-trailing-slash-error":{"description":"It is common to be explicit and consistent about whether or not to have a trailing slack on each API path","message":"Path Trailing Slash","severity":"error","given":"$.paths.*~","then":{"function":"pattern","functionOptions":{"notMatch":"/$"}}}}

Back to All of the Rules