Merge f35616d690853b2da2e6196963e3e8dfc79dca5c into 598f1826d8b2bc969aace2c6459824737667218c

This commit is contained in:
Vaishnav Abhijeet 2026-03-21 04:32:09 +01:00 committed by GitHub
commit bbde8eb336
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -1 +1 @@
AGENTS.md
AGENTS.md

View File

@ -241,6 +241,13 @@ function cleanSchemaForGeminiWithDefs(
const result: Record<string, unknown> = {
...(cleaned as Record<string, unknown>),
};
for (const [key, value] of Object.entries(obj)) {
if (key !== "$ref" && value !== undefined) {
result[key] = value;
}
}
copySchemaMeta(obj, result);
return result;
}