Skip to content

Commit

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

### Bug Fixes

* make sps-ref-property-name more specific ([#81](#81)) ([0982e0b](0982e0b))
  • Loading branch information
semantic-release-bot committed Mar 14, 2024
1 parent 0982e0b commit f2a3eeb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions sps-api-standards.spectral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ rules:
description: Property with the name 'ref' MUST be of type 'sps-ref' following URN-like reference formats.
severity: error
formats: [oas3]
given: '$..properties..[?((@property=== "ref" || @property === "Ref") && @.$ref == null && @.allOf == null && @.oneOf == null)]'
given: '$..properties..[?((@property=== "ref" || @property === "Ref") && @.$ref == null && @.allOf == null && @.oneOf == null && @.type != null)]'
resolved: false
then:
- field: "format"
function: truthy
- field: "format"
function: pattern
functionOptions:
match: 'sps-ref'
match: "sps-ref"
sps-ref-schema:
description: Properties following 'sps-ref' format MUST use the standardized schema - maxLength (255), minLength(7), pattern (includes 'sps'), type (string).
message: '{{property}} is not provided or not following required schema values.'
message: "{{property}} is not provided or not following required schema values."
severity: error
formats: [oas3]
given: '$..[?(@property=== "format" && @ == "sps-ref")]^'
Expand Down Expand Up @@ -65,22 +65,22 @@ rules:
- field: pattern
function: pattern
functionOptions:
match: 'sps'
match: "sps"
- field: type
function: pattern
functionOptions:
match: '^string$'
match: "^string$"
# fingerprint property usage and naming
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.'
message: "{{property}} is not using property name fingerprint."
severity: error
formats: [oas3]
given: '$.components.schemas..properties.*~'
given: "$.components.schemas..properties.*~"
then:
function: pattern
functionOptions:
notMatch: '^hashkey|hashKey|hash$'
notMatch: "^hashkey|hashKey|hash$"
sps-fingerprint-type:
description: Fingerprint values MUST use a data type of `string`.
severity: error
Expand All @@ -89,7 +89,7 @@ rules:
then:
function: pattern
functionOptions:
match: '^string$'
match: "^string$"
##### General #####
sps-invalid-response-body:
description: Response bodies must be an object type.
Expand Down

0 comments on commit f2a3eeb

Please sign in to comment.