open_api_spex v3.4.0 OpenApiSpex.Plug.PutApiSpec View Source

Module plug that calls a given module to obtain the Api Spec and store it as private in the Conn.

This allows downstream plugs to use the API spec for casting, validating and rendering.

Options

Example

plug OpenApiSpex.Plug.PutApiSpec, module: MyAppWeb.ApiSpec