Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use openapi-generator-cli to generate typescript API files #33

Open
sickl8 opened this issue Jul 21, 2024 · 0 comments
Open

Use openapi-generator-cli to generate typescript API files #33

sickl8 opened this issue Jul 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sickl8
Copy link
Contributor

sickl8 commented Jul 21, 2024

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
@sickl8 sickl8 added the enhancement New feature or request label Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant