-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
fix: Fix nested schema generation #989
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
👍 Looks good to me! Reviewed everything up to c75e6bb in 7 seconds
More details
- Looked at
12
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. python/composio/tools/base/abs.py:43
- Draft comment:
Ensure that themerge_props
parameter injsonref.replace_refs
is intended and correctly used. This parameter might affect how JSON references are resolved and merged, which could impact the schema generation. - Reason this comment was not posted:
Confidence changes required:50%
The change in the PR adds a new parametermerge_props=True
to thejsonref.replace_refs
function call. This parameter is not documented in the PR description, so I need to verify its purpose and impact.
Workflow ID: wflow_O8GMwaX4PrSUCfVX
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
@@ -40,6 +40,7 @@ def remove_json_ref(data: t.Dict) -> t.Dict: | |||
jsonref.replace_refs( | |||
obj=data, | |||
lazy_load=False, | |||
merge_props=True, |
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.
Consider adding a comment explaining why merge_props=True
is necessary here. This parameter is crucial for handling nested schemas correctly, and documenting this requirement would help future maintainers understand the importance of this setting.
I've reviewed the changes and here's my assessment: The change to add
Overall, this is a good fix that addresses the nested schema generation issue. The changes are minimal and focused, with low risk. I recommend adding the suggested documentation improvements before merging. Code Quality Rating: 8/10
|
Important
Update
remove_json_ref
inabs.py
to handle nested JSON schema references withmerge_props=True
.remove_json_ref
inabs.py
to usemerge_props=True
injsonref.replace_refs()
to handle nested JSON schema references.This description was created by
for c75e6bb. It will automatically update as commits are pushed.