Skip to content

Releases: sonyinteractive/kdantic

v0.1.0 — Initial Release

15 May 11:15

Choose a tag to compare

Initial Release

KDantic is now available!

Features

  • Annotations-first CRD generation (apiVersion, kind, scope via namespace)
  • 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[...] and T | None resolve to nullable: true (no anyOf)
  • Supports Literal[...], enum.Enum, StrEnum
  • Supports list[T], dict[str, T] and Mapping[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 kdantic

Quick Start

kdantic --model-path ./models.py --output-dir ./crds

Documentation

See README and CONTRIBUTING for full usage and examples.