Kotlin sdk custom validation errors#1397
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a comprehensive streaming parser for A2UI (v0.8 and v0.9), including a base StreamingParser class and version-specific implementations. It also enhances schema management with new pruning capabilities for components, messages, and common types, and improves validation logic with more precise error reporting. Feedback includes suggestions to optimize regex compilation and object creation for better performance, handling potentially destructive path logic in v0.8, and adding checks for duplicate component IDs to ensure unambiguous error paths.
c6e2b7f to
c233336
Compare
nan-yu
reviewed
May 12, 2026
23399c5 to
c63c64f
Compare
nan-yu
approved these changes
May 19, 2026
c63c64f to
909ecb8
Compare
Implements custom JSON-path validation error string construction for v0.9 payloads in Kotlin, matching Python exactly. Validates messages individually via sub-validators and iterates component arrays to construct precise path prefixes. Port of Python SDK commit 15ee789 � Conflicts: � agent_sdks/kotlin/src/main/kotlin/com/google/a2ui/core/parser/StreamingParser.kt � agent_sdks/kotlin/src/main/kotlin/com/google/a2ui/core/schema/Validator.kt
909ecb8 to
e3dd9fa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implements custom JSON-path validation error string construction for v0.9 payloads in Kotlin, matching Python exactly. Validates messages individually via sub-validators and iterates component arrays to construct precise path prefixes.
Port of Python SDK commit 15ee789
Pre-launch Checklist
If you need help, consider asking for advice on the discussion board.