Skip to content

Commit 75b985d

Browse files
committed
Updated npm scripts to use Redocly
1 parent 6571509 commit 75b985d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
"version": "0.0.1",
44
"description": "OAS (Swagger v3) API Definition for Template API",
55
"scripts": {
6-
"lint": "node_modules/.bin/openapi-generator-cli validate -i specification/nhs-website-content-api.yaml",
7-
"publish": "./node_modules/.bin/openapi-generator-cli generate -i specification/nhs-website-content-api.yaml --generator-key v3.0 -g openapi -o build && rm openapitools.json && mv build/openapi.json build/nhs-website-content-api.json",
6+
"lint": "redocly lint --skip-rule=security-defined specification/nhs-website-content-api.yaml",
7+
"publish": "redocly bundle specification/nhs-website-content-api.yaml --dereferenced --remove-unused-components --ext json -o build/nhs-website-content-api.json",
8+
"serve": "redocly preview-docs -p 5000 build/nhs-website-content-api.json",
89
"check-licenses": "node_modules/.bin/license-checker --failOn GPL --failOn LGPL"
910
},
1011
"author": "NHS Digital",

0 commit comments

Comments
 (0)