# `mix apify.gen`
[🔗](https://github.com/social-growth-studio/apify-client-ex/blob/v1.0.0/dev/mix/tasks/apify.gen.ex#L1)

Generates the operation and schema modules from the committed OpenAPI description.

    mix apify.gen

Runs `oapi_generator` with the `:apify` profile (see `config/dev.exs`) on
`openapi/apify.json` and formats the result. The output directories are deleted
first, so operations and schemas that left the description disappear as well:

  * `lib/apify_client/api/` - one module per resource, `ApifyClient.API.*`
  * `lib/apify_client/schemas/` - one struct per schema, `ApifyClient.Schemas.*`

Never edit those directories by hand; change the generator plugins in
`dev/apify_client/generator/` and regenerate.

To refresh the description itself, run `mix apify.spec.update` first.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
