@@ -4575,10 +4575,8 @@ public struct Client: APIProtocol {
4575
4575
)
4576
4576
let body: OpenAPIRuntime.HTTPBody?
4577
4577
switch input.body {
4578
- case .none:
4579
- body = nil
4580
4578
case let .json(value):
4581
- body = try converter.setOptionalRequestBodyAsJSON (
4579
+ body = try converter.setRequiredRequestBodyAsJSON (
4582
4580
value,
4583
4581
headerFields: &request.headerFields,
4584
4582
contentType: "application/json; charset=utf-8"
@@ -4676,10 +4674,8 @@ public struct Client: APIProtocol {
4676
4674
)
4677
4675
let body: OpenAPIRuntime.HTTPBody?
4678
4676
switch input.body {
4679
- case .none:
4680
- body = nil
4681
4677
case let .json(value):
4682
- body = try converter.setOptionalRequestBodyAsJSON (
4678
+ body = try converter.setRequiredRequestBodyAsJSON (
4683
4679
value,
4684
4680
headerFields: &request.headerFields,
4685
4681
contentType: "application/json; charset=utf-8"
@@ -4777,10 +4773,8 @@ public struct Client: APIProtocol {
4777
4773
)
4778
4774
let body: OpenAPIRuntime.HTTPBody?
4779
4775
switch input.body {
4780
- case .none:
4781
- body = nil
4782
4776
case let .json(value):
4783
- body = try converter.setOptionalRequestBodyAsJSON (
4777
+ body = try converter.setRequiredRequestBodyAsJSON (
4784
4778
value,
4785
4779
headerFields: &request.headerFields,
4786
4780
contentType: "application/json; charset=utf-8"
@@ -5365,10 +5359,8 @@ public struct Client: APIProtocol {
5365
5359
)
5366
5360
let body: OpenAPIRuntime.HTTPBody?
5367
5361
switch input.body {
5368
- case .none:
5369
- body = nil
5370
5362
case let .json(value):
5371
- body = try converter.setOptionalRequestBodyAsJSON (
5363
+ body = try converter.setRequiredRequestBodyAsJSON (
5372
5364
value,
5373
5365
headerFields: &request.headerFields,
5374
5366
contentType: "application/json; charset=utf-8"
@@ -5470,10 +5462,8 @@ public struct Client: APIProtocol {
5470
5462
)
5471
5463
let body: OpenAPIRuntime.HTTPBody?
5472
5464
switch input.body {
5473
- case .none:
5474
- body = nil
5475
5465
case let .json(value):
5476
- body = try converter.setOptionalRequestBodyAsJSON (
5466
+ body = try converter.setRequiredRequestBodyAsJSON (
5477
5467
value,
5478
5468
headerFields: &request.headerFields,
5479
5469
contentType: "application/json; charset=utf-8"
@@ -5575,10 +5565,8 @@ public struct Client: APIProtocol {
5575
5565
)
5576
5566
let body: OpenAPIRuntime.HTTPBody?
5577
5567
switch input.body {
5578
- case .none:
5579
- body = nil
5580
5568
case let .json(value):
5581
- body = try converter.setOptionalRequestBodyAsJSON (
5569
+ body = try converter.setRequiredRequestBodyAsJSON (
5582
5570
value,
5583
5571
headerFields: &request.headerFields,
5584
5572
contentType: "application/json; charset=utf-8"
@@ -8255,8 +8243,7 @@ public struct Client: APIProtocol {
8255
8243
let chosenContentType = try converter.bestContentType(
8256
8244
received: contentType,
8257
8245
options: [
8258
- "application/vnd.github.object",
8259
- "application/json"
8246
+ "application/vnd.github.object"
8260
8247
]
8261
8248
)
8262
8249
switch chosenContentType {
@@ -8268,14 +8255,6 @@ public struct Client: APIProtocol {
8268
8255
.application_vnd_period_github_period_object(value)
8269
8256
}
8270
8257
)
8271
- case "application/json":
8272
- body = try await converter.getResponseBodyAsJSON(
8273
- Operations.repos_sol_get_hyphen_content.Output.Ok.Body.jsonPayload.self,
8274
- from: responseBody,
8275
- transforming: { value in
8276
- .json(value)
8277
- }
8278
- )
8279
8258
default:
8280
8259
preconditionFailure("bestContentType chose an invalid content type.")
8281
8260
}
0 commit comments