mix mpp.openapi (mpp v0.16.0)

Copy Markdown View Source

Generates an OpenAPI 3.1.0 discovery document from an Elixir config file.

mix mpp.openapi path/to/mpp_openapi.exs
mix mpp.openapi path/to/mpp_openapi.exs path/to/openapi.json

The config file must evaluate to the keyword list or map accepted by MPP.Discovery.OpenApi.generate/1. Output defaults to openapi.json.