From 88b7b10963779b493967d0a186aa0631c8b136c5 Mon Sep 17 00:00:00 2001 From: VijayKesharwani <122533719+VijayKesharwani@users.noreply.github.com> Date: Fri, 22 Mar 2024 14:58:34 +0530 Subject: [PATCH 1/3] Fixing camara-http-method rule to include parameters as valid identifier under path. Fixing camara-http-method rule to include parameters as valid identifier under path. --- artifacts/linting_rules/.spectral.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artifacts/linting_rules/.spectral.yml b/artifacts/linting_rules/.spectral.yml index 0b16508e..2793ee47 100644 --- a/artifacts/linting_rules/.spectral.yml +++ b/artifacts/linting_rules/.spectral.yml @@ -108,7 +108,7 @@ rules: then: function: pattern functionOptions: - match: "^(get|put|post|delete|patch|options)$" + match: "^(get|put|post|delete|patch|options|parameters)$" recommended: true # Set to true/false to enable/disable this rule camara-get-no-request-body: From a9acdfd831ad5c66a635fb7c338099676505ca87 Mon Sep 17 00:00:00 2001 From: VijayKesharwani <122533719+VijayKesharwani@users.noreply.github.com> Date: Tue, 26 Mar 2024 15:04:14 +0530 Subject: [PATCH 2/3] Updating change header in .spectral.yml Updating change header in .spectral.yml --- artifacts/linting_rules/.spectral.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artifacts/linting_rules/.spectral.yml b/artifacts/linting_rules/.spectral.yml index 2793ee47..9abba53f 100644 --- a/artifacts/linting_rules/.spectral.yml +++ b/artifacts/linting_rules/.spectral.yml @@ -1,6 +1,6 @@ # CAMARA Project - linting ruleset - documentation avaialable here: # https://github.com/camaraproject/Commonalities/blob/main/documentation/Linting-rules.md -# 31.01.2024 - initial version +# 19.03.2024 - camara-http-method rule corrected extends: "spectral:oas" functions: From b0c71fdcee823d74594601b911922263f9f1a0ca Mon Sep 17 00:00:00 2001 From: VijayKesharwani <122533719+VijayKesharwani@users.noreply.github.com> Date: Tue, 26 Mar 2024 18:33:06 +0530 Subject: [PATCH 3/3] Adding changelog as per the review comments --- artifacts/linting_rules/.spectral.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/artifacts/linting_rules/.spectral.yml b/artifacts/linting_rules/.spectral.yml index 9abba53f..0042b3c4 100644 --- a/artifacts/linting_rules/.spectral.yml +++ b/artifacts/linting_rules/.spectral.yml @@ -1,6 +1,9 @@ # CAMARA Project - linting ruleset - documentation avaialable here: # https://github.com/camaraproject/Commonalities/blob/main/documentation/Linting-rules.md -# 19.03.2024 - camara-http-method rule corrected +# Changelog: +# - 31.01.2024: Initial version +# - 19.03.2024: Corrected camara-http-methods rule + extends: "spectral:oas" functions: