request-validation
CommunityValidate API requests with schemas, clear errors
Authorjrmatherly
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers enforce strict input validation for APIs by providing ready-made schemas and validation middleware for both TypeScript (Zod) and Python (Pydantic), reducing runtime errors and security risks.
Core Features & Use Cases
- Schema definitions: Provides TS (Zod) and Python (Pydantic) schemas for common inputs (email, password, name, role) with type-safe inference.
- Validation middleware / routing integration: Integrates with Express, FastAPI, and similar frameworks to validate body, query, and route params, returning structured error messages.
- Error handling & defaults: Returns consistent errors with field-level messages and applies sensible defaults to optional fields.
Quick Start
Install the required dependencies for Node.js (npm/yarn) and Python environments, import the schemas into your API, and attach the validation middleware to routes to begin validating inputs immediately.
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: request-validation Download link: https://github.com/jrmatherly/metorial-workspace/archive/main.zip#request-validation 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 471,000+ vetted skills library on demand.