mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
feat: use redocly instead of the possibly deprecated swagger-cli
This commit is contained in:
12284
docs/openapi/package-lock.json
generated
12284
docs/openapi/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -4,10 +4,7 @@
|
|||||||
"description": "mCaptcha CAPTCHA service's API",
|
"description": "mCaptcha CAPTCHA service's API",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "swagger-cli bundle openapi.yaml --outfile dist/openapi.yaml --type yaml",
|
"build": "redocly bundle openapi.yaml --output dist/openapi.yaml",
|
||||||
"test": "npm run build && spectral lint dist/openapi.yaml",
|
|
||||||
"serve": "npm run build && redoc-cli serve dist/openapi.yaml --port 7000 --options.onlyRequiredInSamples",
|
|
||||||
"html": "npm run build && redoc-cli bundle dist/openapi.yaml --output dist/index.html --options.onlyRequiredInSamples",
|
|
||||||
"clean": "rm -r dist"
|
"clean": "rm -r dist"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -19,9 +16,7 @@
|
|||||||
"url": "https://github.com/mCaptcha/mCaptcha/issues"
|
"url": "https://github.com/mCaptcha/mCaptcha/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/mCaptcha/mCaptcha#readme",
|
"homepage": "https://github.com/mCaptcha/mCaptcha#readme",
|
||||||
"dependencies": {
|
"devDependencies": {
|
||||||
"@apidevtools/swagger-cli": "^4.0.4",
|
"@redocly/cli": "^1.0.0-beta.129"
|
||||||
"@stoplight/spectral": "^6.5.0",
|
|
||||||
"redoc-cli": "^0.13.21"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user