View Source OpenApiSpex.Operation2 (open_api_spex v3.21.2)
Casts and validates a request from a Plug conn.
Summary
Functions
@spec cast( OpenApiSpex.OpenApi.t(), OpenApiSpex.Operation.t(), Plug.Conn.t(), String.t() | nil, opts :: [OpenApiSpex.cast_opt()] ) :: {:error, [OpenApiSpex.Cast.Error.t()]} | {:ok, Plug.Conn.t()}