Skip to content

Python a2ui_core: Implement catalog with components validation#1577

Open
nan-yu wants to merge 2 commits into
a2ui-project:mainfrom
nan-yu:re-arch-4
Open

Python a2ui_core: Implement catalog with components validation#1577
nan-yu wants to merge 2 commits into
a2ui-project:mainfrom
nan-yu:re-arch-4

Conversation

@nan-yu

@nan-yu nan-yu commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Summary of Changes

This pull request implements a comprehensive validation layer for the A2UI core library. It establishes a structured approach to catalog management, allowing for both statically defined Pydantic models and dynamic JSON schema-based validation. The changes include new utilities for checking component integrity, analyzing graph topology, and ensuring that component references and function calls conform to the defined catalog specifications. This ensures higher reliability for A2UI protocol payloads.

Highlights

  • Catalog Validation Framework: Introduced a robust validation framework for A2UI catalogs, including base classes for catalog definitions and concrete implementations for both Pydantic-based models and dynamic JSON schema validation.
  • Integrity and Topology Analysis: Added comprehensive integrity checkers and topology analyzers to ensure component graphs are valid, acyclic, and reachable, with support for custom reference field definitions.
  • Dynamic Validation Support: Implemented JsonCatalog to support server-side validation using JSON Schema (Draft 2020-12), enabling dynamic checks without requiring pre-compiled Pydantic models.
  • Dependency Updates: Added jsonschema and referencing as new dependencies to support the dynamic JSON schema validation requirements.
Activity
  • Pull request created by nan-yu.
  • Multiple failed attempts to trigger automated review and summary generation.
  • User requested summary generation via '/gemini summary'.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@nan-yu

nan-yu commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

/gemini review

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@nan-yu

nan-yu commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

/gemini summary

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

Gemini encountered an error creating the summary. You can try again by commenting /gemini summary.

@nan-yu

nan-yu commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

/gemini summary

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

This pull request implements a comprehensive validation layer for the A2UI core library. It establishes a structured approach to catalog management, allowing for both statically defined Pydantic models and dynamic JSON schema-based validation. The changes include new utilities for checking component integrity, analyzing graph topology, and ensuring that component references and function calls conform to the defined catalog specifications. This ensures higher reliability for A2UI protocol payloads.

Highlights

  • Catalog Validation Framework: Introduced a robust validation framework for A2UI catalogs, including base classes for catalog definitions and concrete implementations for both Pydantic-based models and dynamic JSON schema validation.
  • Integrity and Topology Analysis: Added comprehensive integrity checkers and topology analyzers to ensure component graphs are valid, acyclic, and reachable, with support for custom reference field definitions.
  • Dynamic Validation Support: Implemented JsonCatalog to support server-side validation using JSON Schema (Draft 2020-12), enabling dynamic checks without requiring pre-compiled Pydantic models.
  • Dependency Updates: Added jsonschema and referencing as new dependencies to support the dynamic JSON schema validation requirements.
Activity
  • Pull request created by nan-yu.
  • Multiple failed attempts to trigger automated review and summary generation.
  • User requested summary generation via '/gemini summary'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant