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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant