View Source CoseDellaVitaEx.Errors.RequireOneOfError (CoseDellaVitaEx v0.2.0)

At least one of the fields is required.

Absinthe type is :require_one_of_error. Field :fields must be set by the calling resolver.

Link to this section Summary

Functions

Validate if the changeset has at least one of the fields set.

Link to this section Types

@type t() :: %CoseDellaVitaEx.Errors.RequireOneOfError{
  error_type: term(),
  fields: term(),
  message: term(),
  path: term()
}

Link to this section Functions

Link to this function

validate(changeset, key, fields)

View Source
@spec validate(Ecto.Changeset.t(), atom(), [atom()]) :: Ecto.Changeset.t()

Validate if the changeset has at least one of the fields set.