Add typed config/frontmatter validation (pydantic? custom?) #10

Closed
opened 2026-09-02 00:58:41 +00:00 by omicron · 2 comments
Owner

Currently the config and frontmatter are just big any outputs from yaml. It would be nice if we can turn these into typed data classes of some kind so we can do better validation and error reporting.

Currently the config and frontmatter are just big `any` outputs from yaml. It would be nice if we can turn these into typed data classes of some kind so we can do better validation and error reporting.
omicron added this to the soon™ milestone 2026-09-02 00:58:41 +00:00
omicron added the Kind/Enhancement label 2026-09-02 00:58:41 +00:00
Author
Owner

The config file was refactored by 4351ea8e0d and now conforms to these requirements. It uses custom validation and creates a type annotated dataclass SiteConfig.

The config file was refactored by 4351ea8e0d and now conforms to these requirements. It uses custom validation and creates a type annotated dataclass `SiteConfig`.
Author
Owner

The frontmatter was refactored in 346e3d7e0c. This wraps up this issue.

The frontmatter was refactored in 346e3d7e0c51e5905050c0dea87528d6146b9a21. This wraps up this issue.
Sign in to join this conversation.