-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
26 lines (26 loc) · 1.06 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"name": "todoapi-spec",
"version": "1.0.0",
"description": "OpenAPI specification for TodoAPI",
"main": "index.js",
"author": "Nicolas Takashi",
"license": "MIT",
"scripts": {
"premock": "yarn bundle",
"mock": "prism mock ./bin/api.yaml -d",
"bundle": "swagger-cli bundle specs/api.yaml -o ./bin/api.yaml -t yaml",
"prelint": "yarn bundle",
"lint": "spectral lint ./bin/api.yaml --ignore-unknown-format --ruleset ./.spectral.yml",
"precontract-test": "dotnet build api/TodoApp.Api/TodoApp.Api.csproj && swagger tofile --yaml --output ./bin/swagger.yaml api/TodoApp.Api/bin/Debug/netcoreapp3.1/TodoApp.Api.dll v1 && yarn bundle",
"contract-test": "openapi-diff ./bin/api.yaml ./bin/swagger.yaml",
"prestart-doc": "swagger-cli bundle specs/api.yaml -o ./docs/src/api.json -t json",
"start-doc": "yarn --cwd ./docs start"
},
"dependencies": {
"@openapitools/openapi-generator-cli": "^2.3.7",
"@stoplight/prism-cli": "^4.3.1",
"@stoplight/spectral": "^5.9.1",
"openapi-diff": "^0.23.4",
"swagger-cli": "^4.0.4"
}
}