Skip to content

Commit 3b328c7

Browse files
committed
Treepots: add enums of other types
Test for OpenAPITools/openapi-generator#75
1 parent 324a41c commit 3b328c7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

openapi-generator-utils/treepots/treepots.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,29 @@ components:
119119
ObjWithEnums:
120120
type: object
121121
properties:
122+
IProp:
123+
$ref: "#/components/schemas/IntEnum"
124+
LProp:
125+
$ref: "#/components/schemas/LongEnum"
122126
SProp:
123127
$ref: "#/components/schemas/StringEnum"
124128

129+
IntEnum:
130+
type: integer
131+
format: int32
132+
enum:
133+
- 1
134+
- 2
135+
- 3
136+
137+
LongEnum:
138+
type: integer
139+
format: int64
140+
enum:
141+
- 20
142+
- 30
143+
- 40
144+
125145
StringEnum:
126146
type: string
127147
enum:

0 commit comments

Comments
 (0)