fix: make header names python-safe#592
fix: make header names python-safe#592saurabhkoshatwar wants to merge 5 commits intogoogleapis:mainfrom
Conversation
|
/gcbrun |
|
Thanks for the PR @saurabhkoshatwar ! Could you please take a look at the integration test failure? I'm also thinking if we could add any more integration/unit tests to verify this change. For instance to see if there could still be any validation failures while actually using hyphenated parameters? |
99c3383 to
992c3a5
Compare
|
/gcbrun |
@saurabhkoshatwar Bumping this up in case it got missed :) |
992c3a5 to
de80c29
Compare
|
/gcbrun |
|
@anubhav756 could you please rerun the tests? Thanks! |
a5305cd to
d092006
Compare
|
/gcbrun |
3ab9bb9 to
8aa416d
Compare
|
/gcbrun |
8aa416d to
610a9ca
Compare
|
@anubhav756, please rerun /gcbrun |
|
/gcbrun |
@saurabhkoshatwar Done! |
|
Hi @saurabhkoshatwar , @anubhav756 I was digging into this and I think we might have a validation order issue. The current approach builds the Pydantic models with safe names (like I tested this locally and it breaks as soon as you try to actually call the tool. I think it will be better if we use Pydantic's Also, it would be good to add an E2E test case for this—the current unit tests only check that the model can be created, not that it actually validates hyphenated data during a real call. |
Fixes #580
Summary
Details