c.run("sudo apt-get update && sudo apt-get install -y npm")
c.run("sudo mkdir -p /usr/local/lib/node_modules && sudo chmod 777 /usr/local/lib/node_modules")
c.run("npm install -g @stoplight/spectral-cli")
- c.run("npm install -g api-spec-converter")
@task
c.run(
"spectral lint --ruleset docs/http-api/swagger/spectral-ruleset.yaml --fail-severity error --display-only-failures docs/http-api/swagger/authoritative-api-swagger.yaml"
)
- c.run(
- "api-spec-converter docs/http-api/swagger/authoritative-api-swagger.yaml -f swagger_2 -t openapi_3 -s json -c"
- )
@task