Lemma.ShowRow (lemma_engine v0.10.2)

Copy Markdown View Source

Row object schema of an instance list, as returned in Lemma.Show.rows: one $defs entry of the Show document per row spec, referenced from a list property's items $ref.

data holds every row-spec input keyed relative to the row spec, dotted uses fields included. required lists the row fields a row rule needs that have no committed value.

Summary

Functions

Builds a Lemma.ShowRow from one value of the decoded Show document's "$defs".

Types

t()

@type t() :: %Lemma.ShowRow{
  data: %{optional(String.t()) => Lemma.ShowData.t()},
  required: [String.t()],
  title: String.t()
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Builds a Lemma.ShowRow from one value of the decoded Show document's "$defs".