File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
modules/openapi-generator/src/test/resources/3_0 Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments