Skip to content

Commit

Permalink
chore(release): 1.11.3 [skip ci]
Browse files Browse the repository at this point in the history
## [1.11.3](v1.11.2...v1.11.3) (2024-03-19)

### Bug Fixes

* Sps-Headers with proper casing for consistency ([#82](#82)) ([a9a0173](a9a0173))
  • Loading branch information
semantic-release-bot committed Mar 19, 2024
1 parent a9a0173 commit 7317e35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sps-api-standards.spectral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7317e35

Please sign in to comment.