Releases: sonyinteractive/kdantic
Releases · sonyinteractive/kdantic
v0.1.0 — Initial Release
Initial Release
KDantic is now available!
Features
- Annotations-first CRD generation (
apiVersion,kind, scope vianamespace) - Single
__crd_meta__object for optional overrides (PEP 544 Protocol-validated) - Deterministic precedence: Annotations >
__crd_meta__> Settings > Derivations - Works with Pydantic v1 and v2
Optional[...]andT | Noneresolve tonullable: true(noanyOf)- Supports
Literal[...],enum.Enum,StrEnum - Supports
list[T],dict[str, T]andMapping[str, T] - Inlined schemas (no
$ref) - CEL validation rules support
- Helm-compatible CRD output via
--helm - Configurable via CLI, YAML, TOML or environment variables
Installation
pip install kdanticQuick Start
kdantic --model-path ./models.py --output-dir ./crdsDocumentation
See README and CONTRIBUTING for full usage and examples.