litestar-dto
CommunityFine-tune Litestar DTOs for explicit payloads.
Authoralti3
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Explicitly shaping inbound and outbound API payloads to protect internal models and enforce contract stability.
Core Features & Use Cases
- Layered DTO configuration with dto and return_dto across handler, controller, router, or app
- DTOConfig policies for exclude, rename_fields, max_nested_depth, forbid_unknown_fields, and partial updates
- DTOData for safe create/update with controlled mutation and nested field paths
- Custom AbstractDTO support when factories can't cover requirements
- Clear patterns for ensuring consistent DTO-driven transformations across the stack
Quick Start
Define a ReadDTO/WriteDTO pair for your model and attach them to your Litestar endpoint to start enforcing a stable payload contract.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: litestar-dto Download link: https://github.com/alti3/litestar-skills/archive/main.zip#litestar-dto Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.