fastapi-core-schemas

Standardize FastAPI request validation and response serialization with base schemas.

3|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/agusmdev/burntop --skill fastapi-core-schemas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fastapi-core-schemas
Source: https://github.com/agusmdev/burntop/tree/main/.claude/skills/fastapi-core-schemas
Command: npx skills add https://github.com/agusmdev/burntop --skill fastapi-core-schemas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill standardizes FastAPI request validation and response serialization.

Core Features & Use Cases

  • Base schemas: Predefined BaseSchema, BaseCreateSchema, BaseUpdateSchema, and BaseResponseSchema configured for ORM mode, aliasing, whitespace trimming, and validation defaults.
  • Consistent contracts: Streamlines create/read/update/delete workflows with uniform input/output shapes.
  • Extensibility: Supports custom resource schemas by inheriting from the base classes to fit domain models.

Quick Start

Extend the provided base schemas to define your resource contracts, then implement ItemCreate(BaseCreateSchema), ItemUpdate(BaseUpdateSchema), and ItemResponse(BaseResponseSchema) as shown in the examples.

Frequently Asked Questions about fastapi-core-schemas

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize FastAPI request validation and response serialization?

Standardize FastAPI request validation and response serialization by inheriting from predefined base schemas like BaseCreateSchema and BaseResponseSchema. These base classes configure ORM mode, aliasing, whitespace trimming, and validation defaults to ensure uniform input and output shapes across your REST endpoints.

What is the best way to structure Pydantic v2 schemas for FastAPI CRUD workflows?

Structure Pydantic v2 schemas for FastAPI CRUD workflows by extending the provided BaseCreateSchema, BaseUpdateSchema, and BaseResponseSchema classes. This approach streamlines create, read, update, and delete operations with consistent API contracts and built-in validation defaults.

Can I use these base schemas with ORM-integrated models in FastAPI?

Yes, you can use these base schemas with ORM-integrated models in FastAPI. The BaseResponseSchema is specifically configured with ORM mode enabled, allowing seamless serialization of SQLAlchemy or other ORM model instances directly into JSON responses.

Do I need to manually configure aliasing and whitespace trimming for every Pydantic schema?

No, you do not need to manually configure aliasing and whitespace trimming for every Pydantic schema. The base schemas automatically apply these validation defaults, ensuring consistent data cleaning and field aliasing across all resources that inherit from them.

How do I define custom resource schemas for domain-specific FastAPI endpoints?

Define custom resource schemas for domain-specific FastAPI endpoints by inheriting from the base classes. Create classes like ItemCreate(BaseCreateSchema) or ItemResponse(BaseResponseSchema) to fit your domain models while maintaining standardized validation and serialization behavior.

What are the limitations of using standardized base schemas for FastAPI API contracts?

The limitation of using standardized base schemas for FastAPI API contracts is that highly specialized validation rules or unique serialization formats may require overriding the base defaults. Complex domain logic beyond standard CRUD workflows might need custom schema configurations outside the provided base implementations.