Validate Card Builder config
card_builder_validate_configValidate a Card Builder config's structure before creating or updating a card. Checks version, rootId, block types, parent/child links, entity providers, and prop wrappers.
Instructions
Run lightweight structural validation on a Card Builder config (DocumentData).
Checks version, rootId presence, that every block has a known
type, that parent/child links are mutually consistent, that
entity-required blocks resolve an entity provider (inherited, slot, or
fixed) by walking up the tree, and that prop values use the
{value: ...}/{binding: ...} wrapper Card Builder requires. Pure
computation — makes no call to Home Assistant and does not check
against the live upstream schema (see
card_builder_check_schema_sync for that).
Use when: sanity-checking a config before
card_builder_create_card/card_builder_update_card.
Returns: {ok: bool, errors: [...], warnings: [...], block_count, slot_count} — ok is false only when errors is non-empty;
warnings flags renamed/unwrapped/unknown props without failing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | DocumentData config to check, as produced by card_builder_build_from_recipe or returned by card_builder_get_card. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||