litestar-dto-openapi
OfficialStreamline Litestar DTO and OpenAPI schema workflows.
Authorlitestar-org
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill eliminates tedious, error-prone manual configuration of Litestar data transfer objects (DTOs) and mismatches between OpenAPI schemas and intended API contracts, reducing backend-frontend alignment work for Litestar developers.
Core Features & Use Cases
- DTO Configuration Guidance: Provides best practices for selecting and configuring msgspec or Pydantic DTOs for request/response typing, including field exclusion, renaming, and partial update setup.
- OpenAPI Contract Alignment: Helps validate that generated OpenAPI schemas match API behavior, including wire naming conventions and correct media type handling for request bodies.
- Use Case: For example, when building a Litestar user management API, use this skill to configure write DTOs that exclude server-owned fields like
idandcreated_at, and verify the/schemaendpoint outputs the correct camelCase contract for frontend consumers.
Quick Start
Use the litestar-dto-openapi skill to configure a write DTO for your User model that excludes internal server-owned fields and matches your API's camelCase naming convention.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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-openapi Download link: https://github.com/litestar-org/litestar-skills/archive/main.zip#litestar-dto-openapi 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 537,000+ vetted skills library on demand.