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>
36 lines
649 B
YAML
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'
|