Skip to content

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

@sickl8

Description

@sickl8

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions