Skip to content

Commit daa1bbf

Browse files
authored
Merge pull request #172 from wei18/dependabot/submodules/Submodule/github/rest-api-description-d5aff63
Bump Submodule/github/rest-api-description from `ebc1fec` to `d5aff63`
2 parents 2657349 + 9fb12f6 commit daa1bbf

File tree

46 files changed

+53118
-33786
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+53118
-33786
lines changed

Sources/actions/Client.swift

Lines changed: 3160 additions & 1671 deletions
Large diffs are not rendered by default.

Sources/actions/Types.swift

Lines changed: 3589 additions & 446 deletions
Large diffs are not rendered by default.

Sources/activity/Types.swift

Lines changed: 4063 additions & 797 deletions
Large diffs are not rendered by default.

Sources/apps/Types.swift

Lines changed: 177 additions & 46 deletions
Large diffs are not rendered by default.

Sources/billing/Client.swift

Lines changed: 1024 additions & 261 deletions
Large diffs are not rendered by default.

Sources/billing/Types.swift

Lines changed: 3028 additions & 1123 deletions
Large diffs are not rendered by default.

Sources/campaigns/Types.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ public enum Components {
782782
case closedCount = "closed_count"
783783
case inProgressCount = "in_progress_count"
784784
}
785-
public init(from decoder: any Decoder) throws {
785+
public init(from decoder: any Swift.Decoder) throws {
786786
let container = try decoder.container(keyedBy: CodingKeys.self)
787787
self.openCount = try container.decode(
788788
Swift.Int.self,
@@ -1310,8 +1310,8 @@ public enum Operations {
13101310
}
13111311
/// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/json/case2`.
13121312
case case2(Operations.CampaignsCreateCampaign.Input.Body.JsonPayload.Case2Payload)
1313-
public init(from decoder: any Decoder) throws {
1314-
var errors: [any Error] = []
1313+
public init(from decoder: any Swift.Decoder) throws {
1314+
var errors: [any Swift.Error] = []
13151315
do {
13161316
self = .case1(try .init(from: decoder))
13171317
return
@@ -1330,7 +1330,7 @@ public enum Operations {
13301330
errors: errors
13311331
)
13321332
}
1333-
public func encode(to encoder: any Encoder) throws {
1333+
public func encode(to encoder: any Swift.Encoder) throws {
13341334
switch self {
13351335
case let .case1(value):
13361336
try value.encode(to: encoder)
@@ -1982,7 +1982,7 @@ public enum Operations {
19821982
case contactLink = "contact_link"
19831983
case state
19841984
}
1985-
public init(from decoder: any Decoder) throws {
1985+
public init(from decoder: any Swift.Decoder) throws {
19861986
let container = try decoder.container(keyedBy: CodingKeys.self)
19871987
self.name = try container.decodeIfPresent(
19881988
Swift.String.self,

Sources/checks/Types.swift

Lines changed: 315 additions & 175 deletions
Large diffs are not rendered by default.

Sources/code-scanning/Client.swift

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ public struct Client: APIProtocol {
134134
name: "severity",
135135
value: input.query.severity
136136
)
137+
try converter.setQueryItemAsURI(
138+
in: &request,
139+
style: .form,
140+
explode: true,
141+
name: "assignees",
142+
value: input.query.assignees
143+
)
137144
converter.setAcceptHeader(
138145
in: &request.headerFields,
139146
contentTypes: input.headers.accept
@@ -341,6 +348,13 @@ public struct Client: APIProtocol {
341348
name: "severity",
342349
value: input.query.severity
343350
)
351+
try converter.setQueryItemAsURI(
352+
in: &request,
353+
style: .form,
354+
explode: true,
355+
name: "assignees",
356+
value: input.query.assignees
357+
)
344358
converter.setAcceptHeader(
345359
in: &request.headerFields,
346360
contentTypes: input.headers.accept
@@ -1345,7 +1359,7 @@ public struct Client: APIProtocol {
13451359
switch chosenContentType {
13461360
case "application/json":
13471361
body = try await converter.getResponseBodyAsJSON(
1348-
[Components.Schemas.CodeScanningAlertInstance].self,
1362+
[Components.Schemas.CodeScanningAlertInstanceList].self,
13491363
from: responseBody,
13501364
transforming: { value in
13511365
.json(value)
@@ -1696,7 +1710,7 @@ public struct Client: APIProtocol {
16961710
received: contentType,
16971711
options: [
16981712
"application/json",
1699-
"application/json+sarif"
1713+
"application/sarif+json"
17001714
]
17011715
)
17021716
switch chosenContentType {
@@ -1708,12 +1722,12 @@ public struct Client: APIProtocol {
17081722
.json(value)
17091723
}
17101724
)
1711-
case "application/json+sarif":
1712-
body = try converter.getResponseBodyAsBinary(
1713-
OpenAPIRuntime.HTTPBody.self,
1725+
case "application/sarif+json":
1726+
body = try await converter.getResponseBodyAsJSON(
1727+
Operations.CodeScanningGetAnalysis.Output.Ok.Body.ApplicationSarifJsonPayload.self,
17141728
from: responseBody,
17151729
transforming: { value in
1716-
.applicationJsonSarif(value)
1730+
.applicationSarifJson(value)
17171731
}
17181732
)
17191733
default:

0 commit comments

Comments
 (0)