From 7317e3561fd4e44ffdb7dcd5f5c4412477e7a268 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 19 Mar 2024 15:27:59 +0000 Subject: [PATCH] chore(release): 1.11.3 [skip ci] ## [1.11.3](https://github.com/SPSCommerce/sps-api-standards/compare/v1.11.2...v1.11.3) (2024-03-19) ### Bug Fixes * Sps-Headers with proper casing for consistency ([#82](https://github.com/SPSCommerce/sps-api-standards/issues/82)) ([a9a0173](https://github.com/SPSCommerce/sps-api-standards/commit/a9a0173043441d5dcd15407faf0a964c29bad6ae)) --- sps-api-standards.spectral.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sps-api-standards.spectral.yml b/sps-api-standards.spectral.yml index 085592f..0e76311 100644 --- a/sps-api-standards.spectral.yml +++ b/sps-api-standards.spectral.yml @@ -184,7 +184,7 @@ rules: then: function: pattern functionOptions: - match: "^(SPS-[a-zA-Z0-9-]{1,50}|Accept|Access-Control.*|Authorization|Cache-Control|Content-Language|Content-Length|Content-Type|Date|ETag|Host|If-Match|If-None-Match|Location|Origin|User-Agent)$" + match: "^(Sps-[a-zA-Z0-9-]{1,50}|Accept|Access-Control.*|Authorization|Cache-Control|Content-Language|Content-Length|Content-Type|Date|ETag|Host|If-Match|If-None-Match|Location|Origin|User-Agent)$" sps-sensitive-data-in-headers: description: Headers MUST NOT contain sensitive data. severity: error @@ -203,13 +203,13 @@ rules: functionOptions: notMatch: "\\.json|\\.xml|\\.yml|\\.yaml" sps-invalid-mime-type: - description: MIME types MUST be standard (application/json, application/problem+json, application/problem+xml) or use custom format application/vnd.sps-*+(json|xml) + description: MIME types MUST be standard (application/json, application/problem+json, application/problem+xml) or use custom format application/vnd.* severity: error given: $.paths[*][*].responses[*].content.*~ then: function: pattern functionOptions: - match: "^application/(json|problem\\+json|problem\\+xml|vnd\\.sps-.*\\+(json|xml))$" + match: "^application/(json|problem\\+json|problem\\+xml|vnd\\..*)$" ##### HTTP Methods ##### sps-invalid-http-method: description: Operations MUST use only the common HTTP methods as outlined in the standards guide, and must be in lower-case