Brix.SectionTemplate (Brix v0.1.1)

Copy Markdown View Source

Defines the field schema for a section type. Used by the validator to check that section content matches the expected structure.

Summary

Types

field_def()

@type field_def() :: %{
  type: atom(),
  required: boolean(),
  of: atom() | [String.t()] | nil
}

t()

@type t() :: %Brix.SectionTemplate{
  fields: %{required(String.t()) => field_def()} | nil,
  name: String.t() | nil
}