Skip to content

Mify v0.1.19

Latest

Choose a tag to compare

@chebykinn chebykinn released this 12 May 23:04
· 6 commits to main since this release
f36077f

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:
  1. Go to your existing repository and run:
mify init
  1. Update workspace.mify.yaml to include these params:
generator_params:
  template:
    go:
      dev_runner: {}
      mify_generated_path: internal/mify-generated
  1. Add any OpenAPI schema to a client that you want to use and put it in schemas/mify-external/<client-name>/api/api .yaml.
  2. 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: {}
  1. 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!