litestar-dto-openapi

Installation
SKILL.md

Litestar DTO and OpenAPI

Use this skill for DTO selection, msgspec-first schemas, request/response typing, and OpenAPI shape.

Code Style Rules

  • Prefer msgspec DTOs in Litestar apps unless the project is already Pydantic-led.
  • Keep persistence models separate from API DTOs.
  • Use camelCase wire names while Python stays snake_case.
  • Exclude server-owned fields from write DTOs.
  • Treat nullability and requiredness separately: T | None permits null; only a default value makes a field optional.

Quick Reference

Installs
13
GitHub Stars
13
First Seen
May 18, 2026
litestar-dto-openapi — litestar-org/litestar-skills