Skip to main content

Module validate

Module validate 

Source
Expand description

Props validation against a component definition — the catalog’s own mini schema (PropSchema), so the reducer, the fixtures and the generator agree without a JSON Schema engine. Mirrors src/validate.ts.

Re-exports§

pub use crate::expr::is_dynamic;

Structs§

PropIssue

Functions§

is_callable_name
A function name a surface may call: a catalog function, or a HOST function, which is always namespaced (app.toast, harness.openIssue).
validate_node
validate_node_in against the core catalog alone.
validate_node_in
What validate_props leaves out, round 4 (VAPP-103; src/validate.ts validateNode): the node’s style (whitelisted keys, known tokens, $color.* colours), every function a prop (along its schema in view: never inside DATA), visible or an on action calls, and a Table’s slot columns. In this order.
validate_props
Every issue in a node’s props against its component definition; path prefixes every issue path (the reducer passes props).