litestar-custom-types
Installation
SKILL.md
Custom Types
Execution Workflow
- Define the domain type and its canonical wire representation.
- Register type decoders/encoders at the appropriate layer.
- Ensure OpenAPI schema generation remains accurate for custom values.
- Add round-trip tests for decode, business usage, and encode output.
Implementation Rules
- Keep serialization behavior stable and backward compatible.
- Fail fast with actionable error messages on invalid input.
- Avoid ambiguous representations that vary by locale/timezone.
- Keep custom type support centralized to prevent drift.