MishkaGervaz.Form.Verifiers.ValidateFields (MishkaGervaz v0.0.1-alpha.3)

Copy Markdown View Source

Validates the fields section of MishkaGervaz form DSL.

Four checks, in order:

  1. Each field name maps to a resource attribute, relationship, calculation, or aggregate — unless the field is marked virtual.
  2. depends_on references a field declared in the same form.
  3. Virtual fields of type :relation or :select declare a resource.
  4. nested_field entries appear only inside :nested fields.

See MishkaGervaz.Form.Dsl.Fields, MishkaGervaz.Form.Entities.Field, MishkaGervaz.Form.Entities.NestedField, MishkaGervaz.Form.Verifiers.Helpers, and sibling verifiers.