redocly-cli icon indicating copy to clipboard operation
redocly-cli copied to clipboard

enhance no-http-verbs-in-paths with excludedPaths option

Open adamaltman opened this issue 5 months ago • 4 comments

Is your feature request related to a problem? Please describe.

https://redocly.com/docs/cli/rules/no-http-verbs-in-paths/

Invariably, there are going to be false positives. Rather than adding them to the Redocly ignore file (which I tend to use more as an API design debt log) I want to be able to list excluded paths as a rule configuration.

Describe the solution you'd like

rules:
  no-http-verbs-in-paths:
    splitIntoWords: true
    excludedPaths:
      - /foo/profile-options/
Option Type Description
excludedPaths [string] List of paths to exclude from evaluation by this rule.

Describe alternatives you've considered

Doing nothing and using the Redocly ignore file (but it feels noisy to me).

Additional context

n/a

adamaltman avatar Mar 24 '24 12:03 adamaltman