Skip to content

Commit 4581c6e

Browse files
Commit via running ake Sources/licenses
1 parent 4a65d3b commit 4581c6e

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

Sources/licenses/Client.swift

+7
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,13 @@ public struct Client: APIProtocol {
261261
method: .get
262262
)
263263
suppressMutabilityWarning(&request)
264+
try converter.setQueryItemAsURI(
265+
in: &request,
266+
style: .form,
267+
explode: true,
268+
name: "ref",
269+
value: input.query.ref
270+
)
264271
converter.setAcceptHeader(
265272
in: &request.headerFields,
266273
contentTypes: input.headers.accept

Sources/licenses/Types.swift

+29
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,12 @@ extension APIProtocol {
8484
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/license/get(licenses/get-for-repo)`.
8585
public func licenses_sol_get_hyphen_for_hyphen_repo(
8686
path: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Path,
87+
query: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Query = .init(),
8788
headers: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Headers = .init()
8889
) async throws -> Operations.licenses_sol_get_hyphen_for_hyphen_repo.Output {
8990
try await licenses_sol_get_hyphen_for_hyphen_repo(Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input(
9091
path: path,
92+
query: query,
9193
headers: headers
9294
))
9395
}
@@ -333,6 +335,11 @@ public enum Components {
333335
case featured
334336
}
335337
}
338+
/// The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`,
339+
/// `refs/heads/<branch name>` or simply `<branch name>`.
340+
///
341+
/// - Remark: Generated from `#/components/schemas/code-scanning-ref`.
342+
public typealias code_hyphen_scanning_hyphen_ref = Swift.String
336343
/// License Content
337344
///
338345
/// - Remark: Generated from `#/components/schemas/license-content`.
@@ -472,6 +479,10 @@ public enum Components {
472479
///
473480
/// - Remark: Generated from `#/components/parameters/repo`.
474481
public typealias repo = Swift.String
482+
/// The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/<branch name>` or simply `<branch name>`. To reference a pull request use `refs/pull/<number>/merge`.
483+
///
484+
/// - Remark: Generated from `#/components/parameters/git-ref`.
485+
public typealias git_hyphen_ref = Components.Schemas.code_hyphen_scanning_hyphen_ref
475486
}
476487
/// Types generated from the `#/components/requestBodies` section of the OpenAPI document.
477488
public enum RequestBodies {}
@@ -950,6 +961,21 @@ public enum Operations {
950961
}
951962
}
952963
public var path: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Path
964+
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/license/GET/query`.
965+
public struct Query: Sendable, Hashable {
966+
/// The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/<branch name>` or simply `<branch name>`. To reference a pull request use `refs/pull/<number>/merge`.
967+
///
968+
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/license/GET/query/ref`.
969+
public var ref: Components.Parameters.git_hyphen_ref?
970+
/// Creates a new `Query`.
971+
///
972+
/// - Parameters:
973+
/// - ref: The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/<branch name>` or simply `<branch name>`. To reference a pull request use `refs/pull/<number>/merge`.
974+
public init(ref: Components.Parameters.git_hyphen_ref? = nil) {
975+
self.ref = ref
976+
}
977+
}
978+
public var query: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Query
953979
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/license/GET/header`.
954980
public struct Headers: Sendable, Hashable {
955981
public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.licenses_sol_get_hyphen_for_hyphen_repo.AcceptableContentType>]
@@ -966,12 +992,15 @@ public enum Operations {
966992
///
967993
/// - Parameters:
968994
/// - path:
995+
/// - query:
969996
/// - headers:
970997
public init(
971998
path: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Path,
999+
query: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Query = .init(),
9721000
headers: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Headers = .init()
9731001
) {
9741002
self.path = path
1003+
self.query = query
9751004
self.headers = headers
9761005
}
9771006
}

0 commit comments

Comments
 (0)