jcrist / msgspec

A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML
https://jcristharif.com/msgspec/
BSD 3-Clause "New" or "Revised" License
2.45k stars 76 forks source link

Add a deeply recursive schema/union test #638

Closed jcrist closed 10 months ago

jcrist commented 10 months ago

This adds a test from this pydantic issue to ensure that we don't error out when processing deeply recursive schemas with unions. No code change is needed at this time, we process this schema efficiently already.