colonel_kurtz_ex v0.1.1 ColonelKurtz.Validation View Source

ColonelKurtz.Validation provides validate_blocks/2 and validate_blocks/3 which are used to validate block data.

Link to this section Summary

Functions

Given a changeset with an CKBlocks field of the name specified as field, validates the blocks contained in changeset.changes.<field>.

Link to this section Functions

Link to this function

validate_blocks(changeset, field_or_fields)

View Source
validate_blocks(changeset(), atom() | [atom()]) :: changeset()

Given a changeset with an CKBlocks field of the name specified as field, validates the blocks contained in changeset.changes.<field>.

Returns %Ecto.Changeset{}.

Link to this function

validate_blocks(changeset, fields, opts)

View Source