File tree Expand file tree Collapse file tree 4 files changed +28
-0
lines changed
Tests/OpenAPIGeneratorReferenceTests/Resources
ReferenceSources/Petstore Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,18 @@ paths:
69
69
schema :
70
70
format : uuid
71
71
type : string
72
+ - name : sort
73
+ in : query
74
+ required : false
75
+ style : deepObject
76
+ explode : true
77
+ schema :
78
+ type : object
79
+ properties :
80
+ id :
81
+ type : string
82
+ name :
83
+ type : string
72
84
- $ref : ' #/components/parameters/query.born-since'
73
85
responses :
74
86
' 200 ' :
Original file line number Diff line number Diff line change @@ -87,6 +87,13 @@ public struct Client: APIProtocol {
87
87
name: " My-Request-UUID " ,
88
88
value: input. headers. myRequestUUID
89
89
)
90
+ try converter. setQueryItemAsURI (
91
+ in: & request,
92
+ style: . deepObject,
93
+ explode: true ,
94
+ name: " sort " ,
95
+ value: input. query. sort
96
+ )
90
97
try converter. setQueryItemAsURI (
91
98
in: & request,
92
99
style: . form,
Original file line number Diff line number Diff line change @@ -187,6 +187,13 @@ fileprivate extension UniversalServer where APIHandler: APIProtocol {
187
187
name: " feeds " ,
188
188
as: Operations . ListPets. Input. Query. FeedsPayload. self
189
189
) ,
190
+ sort: try converter. getOptionalQueryItemAsURI (
191
+ in: request. soar_query,
192
+ style: . deepObject,
193
+ explode: true ,
194
+ name: " sort " ,
195
+ as: Operations . listPets. Input. Query. sortPayload. self
196
+ ) ,
190
197
since: try converter. getOptionalQueryItemAsURI (
191
198
in: request. soar_query,
192
199
style: . form,
Original file line number Diff line number Diff line change @@ -1905,6 +1905,7 @@ public enum Operations {
1905
1905
/// - limit: How many items to return at one time (max 100)
1906
1906
/// - habitat:
1907
1907
/// - feeds:
1908
+ /// - sort:
1908
1909
/// - since: Supply this parameter to filter pets born since the provided date.
1909
1910
public init (
1910
1911
limit: Swift . Int32 ? = nil ,
@@ -1915,6 +1916,7 @@ public enum Operations {
1915
1916
self . limit = limit
1916
1917
self . habitat = habitat
1917
1918
self . feeds = feeds
1919
+ self . sort = sort
1918
1920
self . since = since
1919
1921
}
1920
1922
}
You can’t perform that action at this time.
0 commit comments