Tests updates and other fixes #27

Merged
javier merged 8 commits from library/tests-update into main 2026-03-27 17:14:27 +00:00
Showing only changes of commit 156d1a5808 - Show all commits
@@ -29,9 +29,12 @@ public struct AmiiboLiveClient: Sendable {
/// Initializes this client with a transport for performing HTTP operations.
/// - Parameter transport: A transport that performs HTTP operations. Defaults to a `URLSessionTransport` using the shared session.
public init(transport: any ClientTransport = URLSessionTransport()) {
guard let serverURL = try? Servers.Server1.url() else {
fatalError("The server URL defined in the OpenAPI specification could not be resolved. Verify that the 'openapi.yaml' server definition is valid.")
}
self.client = .init(
// The force unwrapping implemented below assumes that the server definition from the OpenAPI specification is correct.
serverURL: try! Servers.Server1.url(),
serverURL: serverURL,
configuration: .init(dateTranscoder: ISOTimestampTranscoder()),
transport: transport
)