You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GenericBinder (renderers/web_core/src/v0_9/rendering/generic-binder.ts) and NodeResolver (renderers/web_core/src/v0_9/nodes/ref-fields.ts) both independently inspect Zod schemas:
Centralize Schema Constants: Export canonical reference constants (CHILD_LIST_REF, COMPONENT_ID_REF, ACTION_REF, DATA_BINDING_REF) from a central location (renderers/web_core/src/v0_9/schema/constants.ts or common-types.ts).
Shared Schema Introspection Utility: Consolidate unwrapping logic into a dedicated helper module (renderers/web_core/src/v0_9/schema/schema-reflection.ts) so callers avoid accessing _def directly.
Extend Schema Metadata: Broaden the a2uiChildRef metadata pattern introduced in PR feat(react): render A2uiSurface through the node layer #2393 (markChildRef / childRefKindOf) to Action and Dynamic* schemas (a2uiKind: 'action' | 'dynamic' | 'child-list' | 'component-id').
Overview
GenericBinder(renderers/web_core/src/v0_9/rendering/generic-binder.ts) andNodeResolver(renderers/web_core/src/v0_9/nodes/ref-fields.ts) both independently inspect Zod schemas:_definternals (typeName,innerType,description,options,shape()).ZodOptional,ZodNullable,ZodDefault, andZodEffects.REF:common_types.json#/$defs/...).Goals
CHILD_LIST_REF,COMPONENT_ID_REF,ACTION_REF,DATA_BINDING_REF) from a central location (renderers/web_core/src/v0_9/schema/constants.tsorcommon-types.ts).renderers/web_core/src/v0_9/schema/schema-reflection.ts) so callers avoid accessing_defdirectly.a2uiChildRefmetadata pattern introduced in PR feat(react): render A2uiSurface through the node layer #2393 (markChildRef/childRefKindOf) toActionandDynamic*schemas (a2uiKind: 'action' | 'dynamic' | 'child-list' | 'component-id').References
3a2f5f24)