You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address Codex review: Recursively process additionalProperties
Fixes the issue identified in Codex review where Dict[str, Decimal]
would still fail because additionalProperties schemas were not being
recursively processed.
The previous fix stripped unsupported keywords from the top-level schema
and recursively processed properties, items, anyOf, and allOf. However,
it missed additionalProperties which Pydantic uses for typed dictionaries
like Dict[str, Decimal].
Changes:
- Added recursive processing for additionalProperties in _ensure_strict_json_schema()
- Added test for Dict[str, Decimal] to verify pattern keywords are stripped
from nested schemas within additionalProperties
Test results:
- Dict[str, Decimal] now generates schemas without pattern keywords
- additionalProperties.anyOf properly sanitized
- All constrained types work in dictionary values
0 commit comments