|
| 1 | +// Generated by swift-openapi-generator, do not modify. |
| 2 | +@_spi(Generated) import OpenAPIRuntime |
| 3 | +#if os(Linux) |
| 4 | +@preconcurrency import struct Foundation.URL |
| 5 | +@preconcurrency import struct Foundation.Data |
| 6 | +@preconcurrency import struct Foundation.Date |
| 7 | +#else |
| 8 | +import struct Foundation.URL |
| 9 | +import struct Foundation.Data |
| 10 | +import struct Foundation.Date |
| 11 | +#endif |
| 12 | +/// A type that performs HTTP operations defined by the OpenAPI document. |
| 13 | +public protocol APIProtocol: Sendable {} |
| 14 | + |
| 15 | +/// Convenience overloads for operation inputs. |
| 16 | +extension APIProtocol { |
| 17 | +} |
| 18 | + |
| 19 | +/// Server URLs defined in the OpenAPI document. |
| 20 | +public enum Servers { |
| 21 | + public static func server1() throws -> Foundation.URL { |
| 22 | + try Foundation.URL( |
| 23 | + validatingOpenAPIServerURL: "https://api.github.com", |
| 24 | + variables: [] |
| 25 | + ) |
| 26 | + } |
| 27 | +} |
| 28 | + |
| 29 | +/// Types generated from the components section of the OpenAPI document. |
| 30 | +public enum Components { |
| 31 | + /// Types generated from the `#/components/schemas` section of the OpenAPI document. |
| 32 | + public enum Schemas {} |
| 33 | + /// Types generated from the `#/components/parameters` section of the OpenAPI document. |
| 34 | + public enum Parameters {} |
| 35 | + /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. |
| 36 | + public enum RequestBodies {} |
| 37 | + /// Types generated from the `#/components/responses` section of the OpenAPI document. |
| 38 | + public enum Responses {} |
| 39 | + /// Types generated from the `#/components/headers` section of the OpenAPI document. |
| 40 | + public enum Headers {} |
| 41 | +} |
| 42 | + |
| 43 | +/// API operations, with input and output types, generated from `#/paths` in the OpenAPI document. |
| 44 | +public enum Operations {} |
0 commit comments