Skip to content

Commit

Permalink
chore(release): 1.1.1 [skip ci]
Browse files Browse the repository at this point in the history
## [1.1.1](v1.1.0...v1.1.1) (2022-10-25)

### Bug Fixes

* sps-request-support-json - Accuracy and Testing ([#42](#42)) ([c5d374b](c5d374b))
  • Loading branch information
semantic-release-bot committed Oct 25, 2022
1 parent c5d374b commit 66e6d56
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions sps-api-standards.spectral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,19 @@ rules:
operation-operationId: error
operation-operationId-unique: error
sps-request-support-json:
description: Every request SHOULD support `application/json` media type
description: Every request MUST support `application/json` media type
formats: [oas3]
severity: error
message: "{{description}}: {{error}}"
given: $.paths.[*].requestBody.content[?(@property.indexOf('json') === -1)]^
given: $.paths[*][*].requestBody.content
then:
function: falsy
function: schema
functionOptions:
schema:
type: object
properties:
application/json: true
required:
- application/json
sps-no-numeric-ids:
description: Avoid exposing IDs as an integer, UUIDs or other interoperable strings are preferred.
severity: warn
Expand Down

0 comments on commit 66e6d56

Please sign in to comment.