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

Copy Markdown View Source

Validates the source.preload configuration of MishkaGervaz form DSL.

Catches a runtime footgun at compile time: preloading a relationship whose read action requires pagination raises Ash.Error.Invalid.LimitRequired because preloads do not pass a limit.

Triggers when, for any preload entry, the destination resource's read action has pagination required?: true (the default when required? is not set on the action's pagination block).

See MishkaGervaz.Form.Dsl.Source.Preload, MishkaGervaz.Form.Verifiers.Helpers, and sibling verifiers.