---
type: email
from: Hassan Abu Alhaj <notifications@github.com>
subject: Re: [openai/openai-agents-python] Fix: Remove null values from JSON

 schemas to comply with JSON Schema (PR #1698)
received: 2026-03-06 07:27:14
date_header: Wed, 10 Sep 2025 01:57:39 -0700
priority: normal
status: awaiting_approval
uid: 29994
---

## Email Content

**From:** Hassan Abu Alhaj <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] Fix: Remove null values from JSON

 schemas to comply with JSON Schema (PR #1698)
**Date:** Wed, 10 Sep 2025 01:57:39 -0700

### Body (preview)

@habema commented on this pull request.







> +    # Remove all null values to comply with JSON Schema Draft 2020-12

+    # This prevents LLM providers from rejecting schemas with null values

+    keys_to_remove = []

+    for key, value in json_schema.items():

+        if value is None:

+            keys_to_remove.append(key)

+

+    for key in keys_to_remove:

+        json_schema.pop(key)



Good catch



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/pull/1698#discussion_r2336062298

You are receiving this because you are subscribed to this thread.



Message ID: <openai/openai-agents-python/pull/1698/review/3205160968@github.com>

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
