Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asdf-mint-oapi-codegen Build Lint

mint-oapi-codegen plugin for the asdf version manager.

Contents

Dependencies

  • bash, curl, tar, and POSIX utilities.
  • Go 1.21 or later - required to build mint-oapi-codegen from source

Install

Plugin:

asdf plugin add mint-oapi-codegen
# or
asdf plugin add mint-oapi-codegen https://github.com/saviorand/asdf-mint-oapi-codegen.git

mint-oapi-codegen:

# Show all installable versions
asdf list all mint-oapi-codegen

# Install specific version
asdf install mint-oapi-codegen latest

# Set a version globally (on your ~/.tool-versions file)
asdf set --home mint-oapi-codegen latest

# Now mint-oapi-codegen commands are available
mint-oapi-codegen --version

Check asdf readme for more instructions on how to install & manage versions.

Usage

Once installed, use mint-oapi-codegen to generate Mint client code from OpenAPI specs:

# Generate with a config file
mint-oapi-codegen -config cfg.yaml api.yaml

# Generate with inline options
mint-oapi-codegen \
  -package BlogApi \
  -generate types,client \
  -o blog-api.gen.mint \
  api.yaml

Example configuration (cfg.yaml):

package: BlogApi
output: blog-api.gen.mint
generate:
  models: true
  client: true

See the mint-oapi-codegen repository for more documentation.

Contributing

Contributions of any kind welcome! See the contributing guide.

Thanks goes to these contributors!

License

See LICENSE © Val

About

Generate Mint types and client code from an OpenAPI specification

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages