From 0922de3b5392f01d7cd580c0f23c6c1773149104 Mon Sep 17 00:00:00 2001 From: Bianca Lisle Date: Wed, 4 Sep 2024 14:10:57 +0100 Subject: [PATCH] Revert "chore:re-add spectral rule (#217)" This reverts commit dd68f96694b3c50a2f3f415f925f285a45bd0651. --- tools/spectral/.spectral.yaml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tools/spectral/.spectral.yaml b/tools/spectral/.spectral.yaml index 78017c105a..eb4614f05b 100644 --- a/tools/spectral/.spectral.yaml +++ b/tools/spectral/.spectral.yaml @@ -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"