From c7ca0eac95953c1fe637c57d471ef0137eee4d9a Mon Sep 17 00:00:00 2001 From: VijayKesharwani <122533719+VijayKesharwani@users.noreply.github.com> Date: Thu, 21 Mar 2024 12:30:06 +0530 Subject: [PATCH] Update .spectral.yml --- .spectral.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.spectral.yml b/.spectral.yml index ec0d9939b9..c6a4e08cac 100644 --- a/.spectral.yml +++ b/.spectral.yml @@ -111,11 +111,11 @@ rules: match: "^(get|put|post|delete|patch|options)$" recommended: true # Set to true/false to enable/disable this rule - camara-http-methods-new: + camara-httpnew-methods-new: description: "Ensure that all path URLs have valid HTTP methods (GET, PUT, POST, DELETE, PATCH, OPTIONS)." message: "Invalid HTTP method for '{{path}}'. Must be one of get, put, post, delete, patch, options." severity: error - given: "$.paths[*][?(property != 'parameters')]" # Exclude checking parameters + given: $.paths[*][?(property != 'parameters')] then: function: pattern functionOptions: