swagger-tools/test/fixtures/enum-test.yaml
rimskij a4fc2df4ea feat: add TypeScript generation options to generate-types tool
Add configurable options for customizing TypeScript output:
- enumAsUnion/enumAsEnum: control enum generation style
- interfacePrefix/interfaceSuffix: naming conventions for interfaces
- indentation: 2 spaces, 4 spaces, or tab

Includes validation for mutually exclusive options and valid
TypeScript identifier prefixes/suffixes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 15:42:39 +01:00

36 lines
649 B
YAML

openapi: 3.0.3
info:
title: Enum Test API
version: 1.0.0
paths: {}
components:
schemas:
Status:
type: string
enum:
- pending
- active
- completed
- cancelled
description: Task status
Priority:
type: string
enum:
- low
- normal
- high
- urgent
Task:
type: object
required:
- title
- status
properties:
id:
type: integer
title:
type: string
status:
$ref: '#/components/schemas/Status'
priority:
$ref: '#/components/schemas/Priority'