chore: init the openapi
https://gitlab.com/operator-ict/golemio/code/general/-/issues/302
-
Added command:
"build-docs": "npx openapi-merge-cli"
-
Config file looks like:
{
"inputs": [
{
"inputFile": "./docs/docsTitle.yaml"
},
{
"inputFile": "./node_modules/@golemio/flow/docs/openapi.yaml"
},
{
"inputFile": "./node_modules/@golemio/sorted-waste-stations/docs/openapi.yaml"
}
],
"output": "./docs/output.swagger.json"
}
- Added route:
this.express.use("/api-docs", swaggerUi.serve, swaggerUi.setup(require("../docs/output.swagger.json")));
- fix "" in lint command
- bump **flow ** and **sortedwaste **modules
- add
build-docs
command to pipeline (coz now:Error: Cannot find module '../docs/output.swagger.json'
)
Edited by Nick Shvab