You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by hg...@apache.org on 2026/10/06 09:05:43 UTC
(iggy) 07/16: fix(sdk): sync Swift error codes and golden fixtures
This is an automated email from the ASF dual-hosted git repository.
hubcio pushed a commit to branch feat/durable-protocol-and-sessions
in repository https://gitbox.apache.org/repos/asf/iggy.git
commit f454e432360e667dd2d667662717687b24696113
Author: Hubert Gruszecki <h....@gmail.com>
AuthorDate: Sat Oct 3 20:11:04 2026 +0200
fix(sdk): sync Swift error codes and golden fixtures
RequestIdExhausted was added to the Rust catalog without updating
Swift's mirror, failing the golden check. Regenerate the fixture and
add the matching Swift case so error-code parity stays intact.
---
foreign/swift/Sources/Iggy/Errors/IggyErrorCode.swift | 2 ++
foreign/swift/Tests/IggyTests/Fixtures/golden.json | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/foreign/swift/Sources/Iggy/Errors/IggyErrorCode.swift b/foreign/swift/Sources/Iggy/Errors/IggyErrorCode.swift
index bd4ee77ee..bc09e848e 100644
--- a/foreign/swift/Sources/Iggy/Errors/IggyErrorCode.swift
+++ b/foreign/swift/Sources/Iggy/Errors/IggyErrorCode.swift
@@ -267,6 +267,7 @@ public enum IggyErrorCode: UInt32, Sendable, Hashable, CaseIterable, Codable {
case invalidSession = 14001
case incompatibleProtocolVersion = 14003
case sessionMismatch = 14004
+ case requestIdExhausted = 14005
}
extension IggyErrorCode {
@@ -516,6 +517,7 @@ extension IggyErrorCode {
case .invalidSession: "invalid_session"
case .incompatibleProtocolVersion: "incompatible_protocol_version"
case .sessionMismatch: "session_mismatch"
+ case .requestIdExhausted: "request_id_exhausted"
}
}
}
diff --git a/foreign/swift/Tests/IggyTests/Fixtures/golden.json b/foreign/swift/Tests/IggyTests/Fixtures/golden.json
index 05184ede1..32005aee7 100644
--- a/foreign/swift/Tests/IggyTests/Fixtures/golden.json
+++ b/foreign/swift/Tests/IggyTests/Fixtures/golden.json
@@ -886,7 +886,8 @@
"14000": "already_authenticated",
"14001": "invalid_session",
"14003": "incompatible_protocol_version",
- "14004": "session_mismatch"
+ "14004": "session_mismatch",
+ "14005": "request_id_exhausted"
},
"vectors": {
"consumer.numeric.42": "0101042a000000",