api-validation

Community

Enforce API contracts with type-safe schemas.

Authorimehr
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill ensures API contracts stay in sync by defining inputs and outputs with type-safe schemas, reducing runtime errors and mismatches between client and server.

Core Features & Use Cases

  • Contract-first validation: Define input/output DTOs with Zod and OpenAPI to prevent drift.
  • Runtime safety: Validates and parses data at API boundaries, transforming it into trusted domain types.
  • Documentation & integration: Generates OpenAPI docs and TypeScript types; integrates with Express, Next.js, or tRPC.

Use Case: When designing an API, apply contract-driven design to guarantee end-to-end type safety and robust error handling.

Quick Start

  • Ensure Zod and OpenAPI tooling are available in your project.
  • Create schemas like CreateUserSchema and wire them to endpoints with validators.
  • Validate outgoing responses against a response schema to enforce consistent API shapes.

Dependency Matrix

Required Modules

None required

Components

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: api-validation
Download link: https://github.com/imehr/vet/archive/main.zip#api-validation

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.