View Source OpenApiSpex.Operation2 (open_api_spex v3.18.3)

Casts and validates a request from a Plug conn.

Link to this section Summary

Link to this section Functions

Link to this function

cast(spec, operation, conn, content_type, opts \\ [])

View Source
@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()}