mix apify.gen (apify_client v1.0.0)

Copy Markdown View Source

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.