What's Changed
Features
- Moved generated files to a single directory mify-generated. Migration should be automatic, Mify will update the files after you run
mify-generate. - Added a test mode to add clients for existing service. In this mode Mify will not create a full managed service, it, will generate only the clients for any OpenAPI schema you can provide, and you'll be able to use it in your existing service. Here's how to use this:
- Go to your existing repository and run:
mify init
- Update workspace.mify.yaml to include these params:
generator_params:
template:
go:
dev_runner: {}
mify_generated_path: internal/mify-generated
- Add any OpenAPI schema to a client that you want to use and put it in
schemas/mify-external/<client-name>/api/api .yaml. - Create a config for your existing service, put it in
schemas/<service-name>/service.mify.yaml, here's an example of config:
language: go
service_name: myservice
maintainers: []
components:
layout: {}
- Run
mify add client myservice --to external-service
This feature is not fully finished, so it doesn't have an easy interface yet, but feel free to try it!