BlogEngine.Posts.RevisionForm (blog_engine v0.1.0)

Copy Markdown View Source

Stable, non-persisted input boundary for BlogEngine revision forms.

Hosts can build Phoenix forms from this embedded schema without depending on the fields, associations, constraints, or storage prefix of the persistence schema used internally by BlogEngine.

Summary

Functions

Builds a host-facing revision form changeset.

Types

t()

@type t() :: %BlogEngine.Posts.RevisionForm{
  author_id: term(),
  content_markdown: term(),
  excerpt: term(),
  featured: term(),
  featured_image_alt: term(),
  featured_image_url: term(),
  publish_at: term(),
  reading_time_minutes: term(),
  slug: term(),
  tag_ids: term(),
  title: term()
}

Functions

changeset(form, attrs)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Builds a host-facing revision form changeset.