pydantic-models-py
Generates Pydantic v2 model sets following a multi-model pattern with Base, Create, Update, Response, and InDB variants.
Setup & Installation
What This Skill Does
Generates Pydantic v2 model sets following a multi-model pattern with Base, Create, Update, Response, and InDB variants. Designed for Python APIs that need consistent request/response schemas and database document types. Includes camelCase alias support and optional fields for PATCH endpoints.
Instead of hand-writing five related model classes per resource and remembering to keep them in sync, this skill scaffolds all variants from a single template with the correct field inheritance already wired.
When to use it
- Defining API request bodies with required field validation for POST endpoints
- Generating PATCH schemas where every field is optional by default
- Adding camelCase aliases so Python models accept both snake_case and camelCase JSON
- Creating Cosmos DB document models with a doc_type discriminator field
- Exporting matching model sets for Base, Create, Update, Response, and InDB from a single template
Similar Skills
ios-application-dev
A reference guide for building iOS apps with UIKit, SnapKit, and SwiftUI.
fullstack-dev
A workflow guide for building full-stack applications, covering backend architecture, frontend-backend integration, auth, real-time features, and production hardening.
android-native-dev
A reference guide for Android native development covering Kotlin/Compose patterns, Material Design 3 specs, Gradle project setup, and build troubleshooting.
frontend-dev
Builds complete frontend pages by combining UI design, scroll animations, AI-generated media assets, and copywriting into a single workflow.
