Skip to content

Bump Submodule/github/rest-api-description from 46be936 to 6ef668a #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Sources/licenses/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,13 @@ public struct Client: APIProtocol {
method: .get
)
suppressMutabilityWarning(&request)
try converter.setQueryItemAsURI(
in: &request,
style: .form,
explode: true,
name: "ref",
value: input.query.ref
)
converter.setAcceptHeader(
in: &request.headerFields,
contentTypes: input.headers.accept
Expand Down
29 changes: 29 additions & 0 deletions Sources/licenses/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ extension APIProtocol {
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/license/get(licenses/get-for-repo)`.
public func licenses_sol_get_hyphen_for_hyphen_repo(
path: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Path,
query: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Query = .init(),
headers: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Headers = .init()
) async throws -> Operations.licenses_sol_get_hyphen_for_hyphen_repo.Output {
try await licenses_sol_get_hyphen_for_hyphen_repo(Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input(
path: path,
query: query,
headers: headers
))
}
Expand Down Expand Up @@ -333,6 +335,11 @@ public enum Components {
case featured
}
}
/// The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`,
/// `refs/heads/<branch name>` or simply `<branch name>`.
///
/// - Remark: Generated from `#/components/schemas/code-scanning-ref`.
public typealias code_hyphen_scanning_hyphen_ref = Swift.String
/// License Content
///
/// - Remark: Generated from `#/components/schemas/license-content`.
Expand Down Expand Up @@ -472,6 +479,10 @@ public enum Components {
///
/// - Remark: Generated from `#/components/parameters/repo`.
public typealias repo = Swift.String
/// 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`.
///
/// - Remark: Generated from `#/components/parameters/git-ref`.
public typealias git_hyphen_ref = Components.Schemas.code_hyphen_scanning_hyphen_ref
}
/// Types generated from the `#/components/requestBodies` section of the OpenAPI document.
public enum RequestBodies {}
Expand Down Expand Up @@ -950,6 +961,21 @@ public enum Operations {
}
}
public var path: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Path
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/license/GET/query`.
public struct Query: Sendable, Hashable {
/// 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`.
///
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/license/GET/query/ref`.
public var ref: Components.Parameters.git_hyphen_ref?
/// Creates a new `Query`.
///
/// - Parameters:
/// - 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`.
public init(ref: Components.Parameters.git_hyphen_ref? = nil) {
self.ref = ref
}
}
public var query: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Query
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/license/GET/header`.
public struct Headers: Sendable, Hashable {
public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.licenses_sol_get_hyphen_for_hyphen_repo.AcceptableContentType>]
Expand All @@ -966,12 +992,15 @@ public enum Operations {
///
/// - Parameters:
/// - path:
/// - query:
/// - headers:
public init(
path: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Path,
query: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Query = .init(),
headers: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Headers = .init()
) {
self.path = path
self.query = query
self.headers = headers
}
}
Expand Down
2 changes: 1 addition & 1 deletion Submodule/github/rest-api-description
Submodule rest-api-description updated 32 files
+3 −0 descriptions-next/api.github.com/api.github.com.2022-11-28.json
+1 −0 descriptions-next/api.github.com/api.github.com.2022-11-28.yaml
+3 −0 descriptions-next/api.github.com/api.github.com.json
+1 −0 descriptions-next/api.github.com/api.github.com.yaml
+10 −0 descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json
+1 −0 descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml
+10 −0 descriptions-next/api.github.com/dereferenced/api.github.com.deref.json
+1 −0 descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml
+10 −52 descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json
+968 −969 descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml
+10 −52 descriptions-next/ghec/dereferenced/ghec.deref.json
+968 −969 descriptions-next/ghec/dereferenced/ghec.deref.yaml
+13 −16 descriptions-next/ghec/ghec.2022-11-28.json
+7 −10 descriptions-next/ghec/ghec.2022-11-28.yaml
+13 −16 descriptions-next/ghec/ghec.json
+7 −10 descriptions-next/ghec/ghec.yaml
+3 −0 descriptions/api.github.com/api.github.com.2022-11-28.json
+1 −0 descriptions/api.github.com/api.github.com.2022-11-28.yaml
+3 −0 descriptions/api.github.com/api.github.com.json
+1 −0 descriptions/api.github.com/api.github.com.yaml
+10 −0 descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json
+1 −0 descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml
+10 −0 descriptions/api.github.com/dereferenced/api.github.com.deref.json
+1 −0 descriptions/api.github.com/dereferenced/api.github.com.deref.yaml
+10 −52 descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json
+969 −970 descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml
+10 −52 descriptions/ghec/dereferenced/ghec.deref.json
+969 −970 descriptions/ghec/dereferenced/ghec.deref.yaml
+13 −16 descriptions/ghec/ghec.2022-11-28.json
+7 −10 descriptions/ghec/ghec.2022-11-28.yaml
+13 −16 descriptions/ghec/ghec.json
+7 −10 descriptions/ghec/ghec.yaml