Skip to content

Commit

Permalink
chore(spectral): add .spectral.yaml and lint script
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Aug 10, 2023
1 parent 7fe03cf commit 8270e60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .spectral.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extends: ["spectral:oas", "spectral:asyncapi"]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"scripts": {
"build": "scripts/postman-to-openapi.sh",
"clean": "rm -rf .cache openapi"
"clean": "rm -rf .cache openapi",
"lint": "spectral lint openapi/spec.json --display-only-failures"
},
"dependencies": {
"postman-to-openapi": "^3.0.1"
Expand Down

0 comments on commit 8270e60

Please sign in to comment.