open_api_spex v3.2.0 OpenApiSpex.Cast View Source

Link to this section Summary

Link to this section Types

Link to this type

schema_or_reference() View Source
schema_or_reference() :: OpenApiSpex.Schema.t() | OpenApiSpex.Reference.t()

Link to this type

t() View Source
t() :: %OpenApiSpex.Cast{
  errors: [OpenApiSpex.Cast.Error.t()],
  index: integer(),
  key: atom() | nil,
  path: [atom() | OpenApiSpex.Cast.String.t() | integer()],
  schema: schema_or_reference() | nil,
  schemas: map(),
  value: term()
}

Link to this section Functions

Link to this function

cast(ctx) View Source
cast(t()) :: {:ok, term()} | {:error, [OpenApiSpex.Cast.Error.t()]}

Link to this function

cast(schema, value, schemas) View Source
cast(schema_or_reference() | nil, term(), map()) ::
  {:ok, term()} | {:error, [OpenApiSpex.Cast.Error.t()]}

Link to this function

success(ctx, schema_properties) View Source