-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix: Detect and handle circular $ref in _dereference_schema
#3880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
foivos-all
wants to merge
66
commits into
google:main
Choose a base branch
from
foivos-all:fix/handle-circular-refs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
a17a8d2
fix: Detect and handle circular `$ref` in `_dereference_schema`
foivos-all 17965d1
Merge branch 'main' into fix/handle-circular-refs
foivos-all 81c75c9
Update src/google/adk/tools/_gemini_schema_util.py
foivos-all 6721fbd
Merge branch 'main' into fix/handle-circular-refs
foivos-all 2e40cb0
Merge branch 'main' into fix/handle-circular-refs
foivos-all 7c1e6ce
Merge branch 'main' into fix/handle-circular-refs
foivos-all b029f36
Merge branch 'main' into fix/handle-circular-refs
foivos-all 58aa121
Merge branch 'main' into fix/handle-circular-refs
foivos-all d104412
fix: executed `pyink`
foivos-all 8f1782f
Merge branch 'main' into fix/handle-circular-refs
foivos-all 6fda596
Merge branch 'main' into fix/handle-circular-refs
foivos-all 813cfd6
Merge branch 'main' into fix/handle-circular-refs
foivos-all 9c8e2f2
Merge branch 'main' into fix/handle-circular-refs
foivos-all b689025
Merge branch 'main' into fix/handle-circular-refs
foivos-all edde80d
Merge branch 'main' into fix/handle-circular-refs
foivos-all cedc98e
Merge branch 'main' into fix/handle-circular-refs
foivos-all 17276dc
Merge branch 'main' into fix/handle-circular-refs
foivos-all da827fb
Merge branch 'main' into fix/handle-circular-refs
foivos-all 3b20062
Merge branch 'main' into fix/handle-circular-refs
foivos-all c2f2158
Merge branch 'main' into fix/handle-circular-refs
foivos-all 6f654d1
Merge branch 'main' into fix/handle-circular-refs
foivos-all 4ba5ba3
Merge branch 'main' into fix/handle-circular-refs
foivos-all 1fee3b4
Merge branch 'main' into fix/handle-circular-refs
foivos-all 1419043
Merge branch 'main' into fix/handle-circular-refs
foivos-all ce42716
Merge branch 'main' into fix/handle-circular-refs
foivos-all 84a6337
Merge branch 'main' into fix/handle-circular-refs
foivos-all 041909c
Merge branch 'main' into fix/handle-circular-refs
foivos-all bb890fa
Merge branch 'main' into fix/handle-circular-refs
foivos-all 273e723
Merge branch 'main' into fix/handle-circular-refs
foivos-all 4e59113
Merge branch 'main' into fix/handle-circular-refs
foivos-all 7e63e87
Merge branch 'main' into fix/handle-circular-refs
foivos-all 84374df
Merge branch 'main' into fix/handle-circular-refs
foivos-all d287f82
Merge branch 'main' into fix/handle-circular-refs
foivos-all fab5b2c
Merge branch 'main' into fix/handle-circular-refs
foivos-all 7235f4e
Merge branch 'main' into fix/handle-circular-refs
foivos-all 1fd974b
Merge branch 'main' into fix/handle-circular-refs
foivos-all 109a279
Merge branch 'main' into fix/handle-circular-refs
foivos-all 35dbd12
Merge branch 'main' into fix/handle-circular-refs
foivos-all 628b300
test: add _dereference_schema circular $ref tests
foivos-all 6b6a860
Merge branch 'main' into fix/handle-circular-refs
foivos-all caa62c4
Merge branch 'main' into fix/handle-circular-refs
foivos-all 487c557
test: fix formatting
foivos-all 59653ae
Merge branch 'fix/handle-circular-refs' of https://github.com/foivos-…
foivos-all 465ddc7
Merge branch 'main' into fix/handle-circular-refs
foivos-all 5e55d87
fix: Expanded JSON pointer handling
foivos-all 10f16b1
Merge branch 'main' into fix/handle-circular-refs
foivos-all a2555fc
Merge branch 'main' into fix/handle-circular-refs
foivos-all 7d989d3
Merge branch 'main' into fix/handle-circular-refs
foivos-all 91455d3
fix: Add missing type parameters to dict annotation
foivos-all 242f5da
Merge branch 'main' into fix/handle-circular-refs
foivos-all 043ee0c
Merge branch 'main' into fix/handle-circular-refs
foivos-all 95fdf8d
Merge branch 'main' into fix/handle-circular-refs
foivos-all cb1ffce
Merge branch 'main' into fix/handle-circular-refs
foivos-all 8292177
Merge branch 'main' into fix/handle-circular-refs
foivos-all 6c92737
Merge branch 'main' into fix/handle-circular-refs
foivos-all 51c821a
Merge branch 'main' into fix/handle-circular-refs
foivos-all d66af95
Merge branch 'main' into fix/handle-circular-refs
foivos-all 4ed165b
Merge branch 'main' into fix/handle-circular-refs
foivos-all fa8c4fd
Merge branch 'main' into fix/handle-circular-refs
foivos-all 33dc71f
Merge branch 'main' into fix/handle-circular-refs
foivos-all 3aa275a
Merge branch 'main' into fix/handle-circular-refs
foivos-all 1be0082
Merge branch 'main' into fix/handle-circular-refs
foivos-all 57a575b
Merge branch 'main' into fix/handle-circular-refs
foivos-all d230fad
Merge branch 'main' into fix/handle-circular-refs
foivos-all c61bf0f
Merge branch 'main' into fix/handle-circular-refs
foivos-all 8f079ed
Merge branch 'main' into fix/handle-circular-refs
foivos-all File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
_resolve_json_pointerfunction is a great addition for handling more complex schemas. However, the current implementation only supports traversing dictionaries and doesn't handle the full JSON Pointer syntax (RFC 6901). Specifically:#/properties/my_array/0).~1for/and~0for~). For example, a reference to a property nameda/bwould be#/properties/a~1b.This can lead to incorrect reference resolution for valid schemas. I suggest expanding the implementation to cover these cases for a more robust solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to make the JSON pointer handling more robust