Skip to content

build(deps): bump networknt json-schema-validator from v1 to v2.0.1#1486

Open
theyihlin wants to merge 3 commits into
google:mainfrom
theyihlin:upgrade-networknt
Open

build(deps): bump networknt json-schema-validator from v1 to v2.0.1#1486
theyihlin wants to merge 3 commits into
google:mainfrom
theyihlin:upgrade-networknt

Conversation

@theyihlin
Copy link
Copy Markdown

Upgrades com.networknt:json-schema-validator from 1.5.1 to 2.0.1, aligning it with jackson-databind v2.17, and refactoring the Validator.kt to use the new v2.x API. Runs and verifies all unit/conformance tests successfully.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request upgrades the json-schema-validator dependency to version 2.0.1 and refactors the Kotlin SDK's Validator class to utilize the updated API. Significant changes include migrating from JsonSchemaFactory to SchemaRegistry, adopting the Schema type, and eliminating the ObjectMapper dependency by validating JSON strings directly. The reviewer suggests optimizing the implementation by reusing shared configuration and registry instances instead of creating redundant local objects.

Comment thread agent_sdks/kotlin/src/main/kotlin/com/google/a2ui/schema/Validator.kt Outdated
Comment thread agent_sdks/kotlin/src/main/kotlin/com/google/a2ui/schema/Validator.kt Outdated
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