koxudaxi
datamodel-code-generator
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
Test alias-reachable lookaround end-to-end instead of via render() The dataclass regex_engine unit tests hand-built the internal Reference graph and asserted on render() string fragments, testing the implementation rather than observable behavior (the negative case only proved "did not crash"). - Replace test_data_class_regex_engine_via_referenced_alias with an end-to-end fixture test driving lookaround_anyof_nullable.json through pydantic_v2.dataclass, with force_exec_validation so the generated module must import under pydantic's default rust regex engine -- the exact failure this PR fixes. - Replace the "skips reference without fields" render() test with a direct has_lookaround_pattern() contract test for the sourceless-reference branch, which no generated schema exercises. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
trail-of-forks:fix-pydantic-v2-dataclass-lookaround-regex-engine
53 minutes ago
Test alias-reachable lookaround end-to-end instead of via render() The dataclass regex_engine unit tests hand-built the internal Reference graph and asserted on render() string fragments, testing the implementation rather than observable behavior (the negative case only proved "did not crash"). - Replace test_data_class_regex_engine_via_referenced_alias with an end-to-end fixture test driving lookaround_anyof_nullable.json through pydantic_v2.dataclass, with force_exec_validation so the generated module must import under pydantic's default rust regex engine -- the exact failure this PR fixes. - Replace the "skips reference without fields" render() test with a direct has_lookaround_pattern() contract test for the sourceless-reference branch, which no generated schema exercises. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
trail-of-forks:fix-pydantic-v2-dataclass-lookaround-regex-engine
59 minutes ago
Detect lookaround patterns reachable through referenced aliases A string field whose lookaround pattern lives in a generated type alias or root type (e.g. `value: LookaroundAlias | None`) produced a pydantic v2 dataclass without `ConfigDict(regex_engine="python-re")`, so it failed at import with a SchemaError under pydantic's default rust regex engine. - `has_lookaround_pattern()` gains an opt-in `follow_references` that walks into referenced models. References are only linked after `__init__`, so the dataclass applies it lazily (memoized) via `imports`/`render`. - Drop the now-passing dataclass lookaround payload-validation exclusions (lookaround_anyof_nullable, lookaround_dict, lookaround_union_types, nested_lookaround_array); keep lookaround_mixed_constraints, whose root-level oneOf has no consuming dataclass to carry the config. - Add unit tests covering the alias-detection path. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
trail-of-forks:fix-pydantic-v2-dataclass-lookaround-regex-engine
3 hours ago
Detect lookaround patterns reachable through referenced aliases A string field whose lookaround pattern lives in a generated type alias or root type (e.g. `value: LookaroundAlias | None`) produced a pydantic v2 dataclass without `ConfigDict(regex_engine="python-re")`, so it failed at import with a SchemaError under pydantic's default rust regex engine. - `has_lookaround_pattern()` gains an opt-in `follow_references` that walks into referenced models. References are only linked after `__init__`, so the dataclass applies it lazily (memoized) via `imports`/`render`. - Drop the now-passing dataclass lookaround payload-validation exclusions (lookaround_anyof_nullable, lookaround_dict, lookaround_union_types, nested_lookaround_array); keep lookaround_mixed_constraints, whose root-level oneOf has no consuming dataclass to carry the config. - Add unit tests covering the alias-detection path. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
trail-of-forks:fix-pydantic-v2-dataclass-lookaround-regex-engine
3 hours ago
docs: update CHANGELOG.md for 0.64.0
docs/changelog-0.64.0
21 hours ago
Reuse JSON Schema ref facts
jsonschema-ref-fact-reuse
23 hours ago
Fast path list output
fast-list-utility-output-pr
23 hours ago
Fast path schema output (#3410)
main
23 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
Fix pydantic v2 dataclass lookaround regex engine
#3370
1 hour ago
f1ff0bc
trail-of-forks:fix-pydantic-v2-dataclass-lookaround-regex-engine
CodSpeed Performance Gauge
-12%
Update CHANGELOG for 0.64.0
#3414
21 hours ago
94fce91
docs/changelog-0.64.0
CodSpeed Performance Gauge
-11%
Reuse JSON Schema ref facts
#3413
23 hours ago
51c705b
jsonschema-ref-fact-reuse
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs