@@ -2539,6 +2539,18 @@ final class SnippetBasedReferenceTests: XCTestCase {
2539
2539
type: array
2540
2540
items:
2541
2541
type: string
2542
+ - name: sort
2543
+ in: query
2544
+ required: true
2545
+ style: deepObject
2546
+ explode: true
2547
+ schema:
2548
+ type: object
2549
+ properties:
2550
+ option1:
2551
+ type: string
2552
+ option2:
2553
+ type: string
2542
2554
responses:
2543
2555
default:
2544
2556
description: Response
@@ -2549,18 +2561,36 @@ final class SnippetBasedReferenceTests: XCTestCase {
2549
2561
public var single: Swift.String?
2550
2562
public var manyExploded: [Swift.String]?
2551
2563
public var manyUnexploded: [Swift.String]?
2564
+ public struct sortPayload: Codable, Hashable, Sendable {
2565
+ public var option1: Swift.String?
2566
+ public var option2: Swift.String?
2567
+ public init(
2568
+ option1: Swift.String? = nil,
2569
+ option2: Swift.String? = nil
2570
+ ) {
2571
+ self.option1 = option1
2572
+ self.option2 = option2
2573
+ }
2574
+ public enum CodingKeys: String, CodingKey {
2575
+ case option1
2576
+ case option2
2577
+ }
2578
+ }
2579
+ public var sort: Operations.get_sol_foo.Input.Query.sortPayload
2552
2580
public init(
2553
2581
single: Swift.String? = nil,
2554
2582
manyExploded: [Swift.String]? = nil,
2555
- manyUnexploded: [Swift.String]? = nil
2583
+ manyUnexploded: [Swift.String]? = nil,
2584
+ sort: Operations.get_sol_foo.Input.Query.sortPayload
2556
2585
) {
2557
2586
self.single = single
2558
2587
self.manyExploded = manyExploded
2559
2588
self.manyUnexploded = manyUnexploded
2589
+ self.sort = sort
2560
2590
}
2561
2591
}
2562
2592
public var query: Operations.get_sol_foo.Input.Query
2563
- public init(query: Operations.get_sol_foo.Input.Query = .init() ) {
2593
+ public init(query: Operations.get_sol_foo.Input.Query) {
2564
2594
self.query = query
2565
2595
}
2566
2596
}
@@ -2597,6 +2627,13 @@ final class SnippetBasedReferenceTests: XCTestCase {
2597
2627
name: " manyUnexploded " ,
2598
2628
value: input.query.manyUnexploded
2599
2629
)
2630
+ try converter.setQueryItemAsURI(
2631
+ in: &request,
2632
+ style: .deepObject,
2633
+ explode: true,
2634
+ name: " sort " ,
2635
+ value: input.query.sort
2636
+ )
2600
2637
return (request, nil)
2601
2638
}
2602
2639
""" ,
@@ -2623,6 +2660,13 @@ final class SnippetBasedReferenceTests: XCTestCase {
2623
2660
explode: false,
2624
2661
name: " manyUnexploded " ,
2625
2662
as: [Swift.String].self
2663
+ ),
2664
+ sort: try converter.getRequiredQueryItemAsURI(
2665
+ in: request.soar_query,
2666
+ style: .deepObject,
2667
+ explode: true,
2668
+ name: " sort " ,
2669
+ as: Operations.get_sol_foo.Input.Query.sortPayload.self
2626
2670
)
2627
2671
)
2628
2672
return Operations.get_sol_foo.Input(query: query)
0 commit comments