Metadata-Version: 2.5
Name: yaddd-pydantic
Version: 0.1.1
Summary: Pydantic v2 integration for yaddd: PydanticVO value objects as first-class model fields
Project-URL: Homepage, https://github.com/netstuff/yaddd
Author-email: Yuri Andreev <andreev.jr@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.12
Requires-Dist: pydantic>=2.10
Requires-Dist: yaddd>=0.3
Description-Content-Type: text/markdown

# yaddd-pydantic
Pydantic v2 integration for [yaddd](https://github.com/pyDDD/yaddd).

`PydanticVO[V]` makes yaddd value objects first-class field types in pydantic
models: pydantic constraints double as VO validation, models accept both raw
values and VO instances, dumps produce primitives, and JSON Schema shows the
primitive shape. `SensitiveValueObject` masking is preserved.

Wiring is explicit: subclass `PydanticVO` in your domain, no auto-discovery.
Conformance is proven by `VoSerializationContract` from `yaddd.testing`.
