Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

Support union deserialization for OpenAPI models#33

Merged
brothercorvo merged 2 commits into
mainfrom
codex/implement-allof/oneof/anyof-in-example
Jun 19, 2025
Merged

Support union deserialization for OpenAPI models#33
brothercorvo merged 2 commits into
mainfrom
codex/implement-allof/oneof/anyof-in-example

Conversation

@brothercorvo

Copy link
Copy Markdown
Member

Summary

  • extend dataclass_from_json to handle typing.Union
  • demonstrate allOf/oneOf/anyOf via new example dataclasses
  • test union support for both root and nested dataclasses

Testing

  • flake8
  • pytest -q

https://chatgpt.com/codex/tasks/task_e_685327bec7e48325b3564e37f5f01d16

@brothercorvo brothercorvo merged commit d3c9292 into main Jun 19, 2025
2 checks passed
@brothercorvo brothercorvo deleted the codex/implement-allof/oneof/anyof-in-example branch August 6, 2025 17:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant