mirror of
https://github.com/openai/codex.git
synced 2026-10-24 18:18:41 +00:00
Upgrade Python SDK model generation to datamodel-code-generator 0.64.0 (#56272)
## What changed
- Regenerate protocol models with `datamodel-code-generator==0.64.0`, targeting Python 3.10.
- Preserve discriminator field titles without introducing extra `RootModel` wrappers for literal values or inline unions.
- Keep nullable project and section IDs optional for compatibility with older SDKs, and remove redundant required-nullable field patches.
## Testing
Extend schema annotation coverage to assert that `ReasoningSummary.model_validate("none").root` remains the string `"none"`.
GitOrigin-RevId: 386d07d7e2e368b07d4602b49be6e81a887685fe
This commit is contained in:
committed by
copyberry
parent
cb2581dae8
commit
0eb98b4617