Skip to content

Commit

Permalink
chore(release): 1.2.0 [skip ci]
Browse files Browse the repository at this point in the history
# [1.2.0](v1.1.2...v1.2.0) (2022-12-07)

### Features

* Standard Property Name for "fingerprint" ([#47](#47)) ([7e08999](7e08999))
  • Loading branch information
semantic-release-bot committed Dec 7, 2022
1 parent 7e08999 commit d4870e0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions sps-api-standards.spectral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,25 @@ rules:
values:
- application/problem+xml
- application/problem+json
sps-fingerprint-naming:
description: Rather than property names refering to the implementation for 'hash' or 'hashkey', you MUST use the property name 'fingerprint'.
message: '{{property}} is not using property name fingerprint.'
severity: error
formats: [oas3]
given: '$.components.schemas..properties.*~'
then:
function: pattern
functionOptions:
notMatch: '^hashkey|hashKey|hash$'
sps-fingerprint-type:
description: Fingerprint values MUST use a data type of `string`.
severity: error
formats: [oas3]
given: '$.components.schemas..properties..[?(@property=== "fingerprint")].type'
then:
function: pattern
functionOptions:
match: '^string$'
sps-request-get-no-body:
description: A `GET` request MUST NOT accept a request body
severity: error
Expand Down

0 comments on commit d4870e0

Please sign in to comment.