Skip to content

Commit 0c11589

Browse files
committed
Treepots: add enums of other types
Test for OpenAPITools/openapi-generator#75
1 parent 7f76595 commit 0c11589

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
@@ -137,9 +137,29 @@ components:
137137
ObjWithEnums:
138138
type: object
139139
properties:
140+
IProp:
141+
$ref: "#/components/schemas/IntEnum"
142+
LProp:
143+
$ref: "#/components/schemas/LongEnum"
140144
SProp:
141145
$ref: "#/components/schemas/StringEnum"
142146

147+
IntEnum:
148+
type: integer
149+
format: int32
150+
enum:
151+
- 1
152+
- 2
153+
- 3
154+
155+
LongEnum:
156+
type: integer
157+
format: int64
158+
enum:
159+
- 20
160+
- 30
161+
- 40
162+
143163
StringEnum:
144164
type: string
145165
enum:

0 commit comments

Comments
 (0)