feat: use redocly instead of the possibly deprecated swagger-cli

This commit is contained in:
Aravinth Manivannan
2023-07-03 19:30:36 +05:30
parent 461020d413
commit 0094bac559
3 changed files with 4357 additions and 11775 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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