File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
modules/openapi-generator/src/test/resources/2_0/c Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,24 @@ paths:
75
75
- petstore_auth :
76
76
- ' write:pets'
77
77
- ' read:pets'
78
+ /pet/specialty :
79
+ get :
80
+ tags :
81
+ - pet
82
+ summary : Specialty of the shop
83
+ description : Returns the kind of pet the store specializes in
84
+ operationId : specialtyPet
85
+ produces :
86
+ - application/xml
87
+ - application/json
88
+ parameters : []
89
+ responses :
90
+ ' 200 ' :
91
+ description : successful operation
92
+ schema :
93
+ $ref : ' #/definitions/Preference'
94
+ security :
95
+ - api_key : []
78
96
/pet/findByStatus :
79
97
get :
80
98
tags :
@@ -626,6 +644,17 @@ definitions:
626
644
type : string
627
645
xml :
628
646
name : Category
647
+ Preference :
648
+ title : Pet preference
649
+ description : A user's preference in pets
650
+ type : string
651
+ enum :
652
+ - cats
653
+ - dogs
654
+ - birds
655
+ - fish
656
+ - snakes
657
+ - other
629
658
User :
630
659
title : a User
631
660
description : A User who is purchasing from the pet store
@@ -650,6 +679,12 @@ definitions:
650
679
type : integer
651
680
format : int32
652
681
description : User Status
682
+ extra :
683
+ type : object
684
+ nullable : true
685
+ additionalProperties : true
686
+ preference :
687
+ $ref : ' #/definitions/Preference'
653
688
xml :
654
689
name : User
655
690
Tag :
You can’t perform that action at this time.
0 commit comments