Add openapi-generator-cli from npm to the CI pipeline.
Requires java (for the base tool) and node+npm (for the openapi-generator-cli).
Command to generate the API typescript files:
# can use yaml
npx openapi-generator-cli generate -i ${GO_WEBAPI_FOLDER}/docs/swagger.yaml -g typescript-axios -o src/lib/api
# or json
npx openapi-generator-cli generate -i ${GO_WEBAPI_FOLDER}/docs/swagger.json -g typescript-axios -o src/lib/api
Add
openapi-generator-cli
from npm to the CI pipeline. Requires java (for the base tool) and node+npm (for theopenapi-generator-cli
). Command to generate the API typescript files: