Skip to content

@a2ui/react 0.10.0 fails v0.8 payload validation for spec-compliant bindable fields (worked on 0.8.0) #1469

@nilkrdg

Description

@nilkrdg

We are rendering A2UI v0.8 payloads and hit a runtime validation failure after upgrading @a2ui/react.

-Current branch version: @a2ui/react@0.10.0
-main branch version: @a2ui/react@0.8.0

  • On 0.8.0 (main), this flow was working; on 0.10.0, validation fails at runtime.

Observed failure is during validation with an error like:

  • Must define exactly one property

A concrete payload example is MultipleChoice.selections containing both:

  • path
  • literalArray

This shape is currently accepted by the official A2UI v0.8 schema references (no explicit XOR/oneOf exclusivity for these bindable fields), including:

  • https://a2ui.org/specification/v0_8/standard_catalog_definition.json

So there appears to be a mismatch between:

  1. what the official v0.8 schema allows (not strict enough), and
  2. what newer @a2ui/react runtime validation enforces (exactly one bindable source).

Request: please align runtime validation behavior with official schema expectations for v0.8 payloads, or tighten the official v0.8 schema with explicit exclusivity so producers/consumers can validate consistently.

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions