MishkaGervaz.Form.Verifiers.ValidateChrome (MishkaGervaz v0.0.1-alpha.2)

Copy Markdown View Source

Validates the chrome entities (header, footer, notice) declared inside the layout section of MishkaGervaz form DSL.

Three checks, in order:

  1. Notice names are unique within a form.
  2. Notice positions are valid atoms or {:before_group, name} / {:after_group, name} tuples that reference an existing group.
  3. Notice only_steps references existing step names.

Position-shape validation is delegated to MishkaGervaz.Form.Entities.Notice.validate_position/1.

See MishkaGervaz.Form.Dsl.Layout, MishkaGervaz.Form.Entities.Notice, MishkaGervaz.Form.Verifiers.Helpers, and sibling verifiers.