BB.Dsl.Verifiers.ValidateChildSpecs (bb v0.15.4)

Copy Markdown View Source

Validates that child_spec options match the module's schema.

Behaviour validation is handled by Spark's schema types (e.g., {:behaviour, BB.Sensor}). This verifier handles the additional validation:

  • If options are provided in the DSL (as {Module, opts} tuple), the module must define options_schema/0
  • If options_schema/0 is defined, the provided options are validated against that schema

Options containing param() references are skipped from validation as they will be resolved at runtime.