resolve-api-to-enum

Official

Generate TypeScript enums from OpenAPI specs.

Authorriease
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Converts OpenAPI specifications into reusable TypeScript enum or union type definitions, enabling strong typing and reduced duplication across API clients.

Core Features & Use Cases

  • Extracts enumerated values from schemas (enum) and fixed value sets from parameters.
  • Generates PascalCase type names and optional display-name mappings for UI-friendly labels.
  • Supports both enum declarations and union-type definitions, with sensible defaults and extensibility for domain-specific enums.

Quick Start

Provide the path to your OpenAPI spec (yaml or json) and run the generator to produce types in src/enums.

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: resolve-api-to-enum
Download link: https://github.com/riease/vue-backend-template/archive/main.zip#resolve-api-to-enum

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.