api.generatemodels
CommunityGenerate type-safe API models, eliminate manual coding.
Authorepieczko
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Manually creating and maintaining data models for APIs in different programming languages (frontend, backend) is repetitive and error-prone. This Skill automates the generation of type-safe models directly from OpenAPI/AsyncAPI specifications, ensuring consistency and reducing development time.
Core Features & Use Cases
- Multi-Language Support: Generates models for TypeScript, Python (Pydantic), Java, Go, C#, and Rust, supporting diverse tech stacks.
- Single Source of Truth: Your API specification becomes the definitive source for all data models, ensuring consistency across your ecosystem.
- Automated Synchronization: Regenerate models whenever your API spec changes, keeping frontend and backend in perfect sync with minimal effort.
- Use Case: A team is building a new microservice with a REST API. They use
api.generatemodelsto create TypeScript interfaces for their frontend and Pydantic models for their Python backend, all derived from a single OpenAPI spec, ensuring type safety end-to-end.
Quick Start
Generate TypeScript models from an OpenAPI spec
python skills/api.generatemodels/modelina_generate.py specs/user-service.openapi.yaml typescript --output-dir=src/models
Dependency Matrix
Required Modules
pyyamldatamodel-code-generator (pip)context.schema
Components
scripts
💻 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.generatemodels Download link: https://github.com/epieczko/betty/archive/main.zip#api-generatemodels Please download this .zip file, extract it, and install it in the .claude/skills/ directory.