-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from Wei18/dependabot/submodules/Submodule/git…
…hub/rest-api-description-4adfd3e Bump Submodule/github/rest-api-description from `e04c0a4` to `4adfd3e`
- Loading branch information
Showing
11 changed files
with
189 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Generated by swift-openapi-generator, do not modify. | ||
@_spi(Generated) import OpenAPIRuntime | ||
#if os(Linux) | ||
@preconcurrency import struct Foundation.URL | ||
@preconcurrency import struct Foundation.Data | ||
@preconcurrency import struct Foundation.Date | ||
#else | ||
import struct Foundation.URL | ||
import struct Foundation.Data | ||
import struct Foundation.Date | ||
#endif | ||
import HTTPTypes | ||
/// GitHub's v3 REST API. | ||
public struct Client: APIProtocol { | ||
/// The underlying HTTP client. | ||
private let client: UniversalClient | ||
/// Creates a new client. | ||
/// - Parameters: | ||
/// - serverURL: The server URL that the client connects to. Any server | ||
/// URLs defined in the OpenAPI document are available as static methods | ||
/// on the ``Servers`` type. | ||
/// - configuration: A set of configuration values for the client. | ||
/// - transport: A transport that performs HTTP operations. | ||
/// - middlewares: A list of middlewares to call before the transport. | ||
public init( | ||
serverURL: Foundation.URL, | ||
configuration: Configuration = .init(), | ||
transport: any ClientTransport, | ||
middlewares: [any ClientMiddleware] = [] | ||
) { | ||
self.client = .init( | ||
serverURL: serverURL, | ||
configuration: configuration, | ||
transport: transport, | ||
middlewares: middlewares | ||
) | ||
} | ||
private var converter: Converter { | ||
client.converter | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Generated by swift-openapi-generator, do not modify. | ||
@_spi(Generated) import OpenAPIRuntime | ||
#if os(Linux) | ||
@preconcurrency import struct Foundation.URL | ||
@preconcurrency import struct Foundation.Data | ||
@preconcurrency import struct Foundation.Date | ||
#else | ||
import struct Foundation.URL | ||
import struct Foundation.Data | ||
import struct Foundation.Date | ||
#endif | ||
/// A type that performs HTTP operations defined by the OpenAPI document. | ||
public protocol APIProtocol: Sendable {} | ||
|
||
/// Convenience overloads for operation inputs. | ||
extension APIProtocol { | ||
} | ||
|
||
/// Server URLs defined in the OpenAPI document. | ||
public enum Servers { | ||
public static func server1() throws -> Foundation.URL { | ||
try Foundation.URL( | ||
validatingOpenAPIServerURL: "https://api.github.com", | ||
variables: [] | ||
) | ||
} | ||
} | ||
|
||
/// Types generated from the components section of the OpenAPI document. | ||
public enum Components { | ||
/// Types generated from the `#/components/schemas` section of the OpenAPI document. | ||
public enum Schemas {} | ||
/// Types generated from the `#/components/parameters` section of the OpenAPI document. | ||
public enum Parameters {} | ||
/// Types generated from the `#/components/requestBodies` section of the OpenAPI document. | ||
public enum RequestBodies {} | ||
/// Types generated from the `#/components/responses` section of the OpenAPI document. | ||
public enum Responses {} | ||
/// Types generated from the `#/components/headers` section of the OpenAPI document. | ||
public enum Headers {} | ||
} | ||
|
||
/// API operations, with input and output types, generated from `#/paths` in the OpenAPI document. | ||
public enum Operations {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.