Skip to content

Conversation

@jacobsimionato
Copy link
Collaborator

@jacobsimionato jacobsimionato commented Feb 12, 2026

This PR refactors the A2UI v0.9 and v0.10 protocol schemas to strictly reference theme properties from the component catalog, aligning theme validation with the existing pattern for components and functions.

Changes:

  • Schema Refactoring:

    • Removed the top-level theme object from standard_catalog.json (v0.9 & v0.10).
    • Inlined primaryColor, iconUrl, and agentDisplayName into the $defs/theme definition within standard_catalog.json.
    • Updated server_to_client.json (v0.9 & v0.10) to reference the theme schema via catalog.json#/$defs/theme instead of using a generic object type.
  • Documentation:

    • Updated a2ui_protocol.md (v0.9 & v0.10) to explicitly state that the theme schema is part of the catalog and referenced via the catalog.json alias.
  • Testing:

    • Added comprehensive theme_validation.json test suites for both versions to verify that valid themes are accepted and invalid ones (e.g., incorrect types or hex codes) are rejected.

@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@jacobsimionato jacobsimionato enabled auto-merge (squash) February 12, 2026 00:50
Copy link
Collaborator

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I see. Yes, this is probably an error in the spec, and was intended to work that way.

@jacobsimionato jacobsimionato merged commit a3a96fc into google:main Feb 12, 2026
5 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in A2UI Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants