Skip to content

Commit 3aae4e8

Browse files
committed
added model with nullable enum example in test definitions
1 parent 9019c44 commit 3aae4e8

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-composed-schemas.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,17 @@ components:
954954
prefix: val
955955
name: member
956956
type: object
957+
NullableEnumModel:
958+
type: object
959+
properties:
960+
enumProp:
961+
type: string
962+
nullable: true
963+
enum:
964+
- a
965+
- b
966+
- null
967+
957968

958969

959970
requestBodies:

modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-fake-endpoints-models-for-testing.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,6 +1813,17 @@ components:
18131813
id: 1
18141814
status: "available"
18151815

1816+
NullableEnumModel:
1817+
type: object
1818+
properties:
1819+
enumProp:
1820+
type: string
1821+
nullable: true
1822+
enum:
1823+
- a
1824+
- b
1825+
- null
1826+
18161827
SinglePetResponse:
18171828
type: object
18181829
properties:

modules/swagger-codegen/src/test/resources/3_0_0/petstore.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,16 @@ components:
725725
Test:
726726
type: string
727727
example: ""
728+
NullableEnumModel:
729+
type: object
730+
properties:
731+
enumProp:
732+
type: string
733+
nullable: true
734+
enum:
735+
- a
736+
- b
737+
- null
728738
requestBodies:
729739
Pet:
730740
content:

0 commit comments

Comments
 (0)