Skip to content

Commit

Permalink
Revert "chore:re-add spectral rule (#217)"
Browse files Browse the repository at this point in the history
This reverts commit dd68f96.
  • Loading branch information
blva committed Sep 4, 2024
1 parent dd68f96 commit 0922de3
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tools/spectral/.spectral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,17 +184,6 @@ rules:
field: allow_diff
pattern: "^true$"

no-slash-before-custom-method:
description: "Custom methods (e.g., ':applyItem') should not be preceded by a '/'."
message: "The path '{{path}}' contains a '/' before a custom method. Custom methods should not start with a '/'."
severity: error
given: "$.paths"
then:
field: "@key"
function: pattern
functionOptions:
notMatch: "/[^/]+/:[a-zA-Z]+$"

overrides:
- files: # load sample data has an issue with different path param names for different VERBS
- "*.yaml#/paths/~1api~1atlas~1v1.0~1groups~1%7BgroupId%7D~1sampleDatasetLoad~1%7BsampleDatasetId%7D"
Expand Down

0 comments on commit 0922de3

Please sign in to comment.