Skip to content

Commit 17a184c

Browse files
Test cases fixes
1 parent 0cee6d9 commit 17a184c

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
openapi: 3.0.0
2+
info:
3+
title: Enum Test API
4+
description: API for testing enum generation with enumUnknownDefaultCase
5+
version: 1.0.0
6+
paths:
7+
/colors:
8+
get:
9+
summary: Get color
10+
operationId: getColor
11+
responses:
12+
'200':
13+
description: Successful response
14+
content:
15+
application/json:
16+
schema:
17+
$ref: '#/components/schemas/ColorResponse'
18+
components:
19+
schemas:
20+
ColorResponse:
21+
type: object
22+
required:
23+
- color
24+
- status
25+
properties:
26+
color:
27+
$ref: '#/components/schemas/ColorEnum'
28+
status:
29+
$ref: '#/components/schemas/StatusEnum'
30+
priority:
31+
$ref: '#/components/schemas/PriorityEnum'
32+
ColorEnum:
33+
type: string
34+
description: Available colors
35+
enum:
36+
- RED
37+
- GREEN
38+
- BLUE
39+
- YELLOW
40+
StatusEnum:
41+
type: string
42+
description: Status values
43+
enum:
44+
- PENDING
45+
- APPROVED
46+
- REJECTED
47+
- IN_PROGRESS
48+
PriorityEnum:
49+
type: integer
50+
description: Priority levels
51+
enum:
52+
- 1
53+
- 2
54+
- 3
55+
- 4
56+
- 5

0 commit comments

Comments
 (0)