mirror of
https://github.com/NVIDIA-NeMo/DataDesigner
synced 2026-05-24 09:48:29 +00:00
* fix: handle discriminated unions in oneOf pruning validator The pruning validator modifies instances in-place during oneOf validation. When trying a wrong variant, it strips properties needed by the correct variant, causing all variants to fail. Add a discriminator-aware oneOf validator that reads the discriminator mapping to select the correct variant directly, skipping the try-all-variants loop that causes the corruption. Fixes #375 * test: add regression test for non-discriminated oneOf fallback |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_exceptions.py | ||
| test_schema_transformers.py | ||
| test_types.py | ||
| test_validators.py | ||