View Source OpenApiSpex.Operation2 (open_api_spex v3.21.2)

Casts and validates a request from a Plug conn.

Summary

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()}