DynamicForm.Parser.FromComponent.Validator (DynamicForm v1.0.0)

Copy Markdown View Source

Validates the slot declarations handed to DynamicForm.form/1 before DynamicForm.Parser.FromComponent builds an Instance from them, raising ArgumentError with a specific message for each definition mistake.

Also owns the slot type vocabulary — the question and element type names a <:field> may declare.

Internal module — not part of the public API.

Summary

Functions

The element type names a <:field> may declare.

The question type names a <:field> may declare.

Validates every slot declaration, raising on the first mistake found.

Functions

element_types()

The element type names a <:field> may declare.

question_types()

The question type names a <:field> may declare.

validate!(fields, groups, nesteds, custom_types)

Validates every slot declaration, raising on the first mistake found.