What problem does it solve?
This Skill automates the generation of TypeScript types, client SDKs, and Zod schemas directly from OpenAPI specifications, eliminating manual type creation and ensuring API consistency.
Core Features & Use Cases
- TypeScript Type Generation: Creates type definitions from your OpenAPI 3.0 schema.
- Client SDK Generation: Builds type-safe fetch or axios client libraries for your API.
- Zod Schema Generation: Generates Zod schemas for runtime validation of API requests and responses.
- React Hooks: Provides pre-built React Query hooks for seamless data fetching.
- Use Case: When you have an OpenAPI specification file (e.g.,
openapi.yaml), you can use this skill to instantly generate all the necessary TypeScript types, a ready-to-use API client, and validation schemas, significantly speeding up frontend development.
Quick Start
Use the openapi-types skill to generate TypeScript types and a client SDK from the file 'api-spec.yaml'.