From a315876e05cc13638b04b989a34357b6dc45f9a9 Mon Sep 17 00:00:00 2001 From: Stefan Herold <794372+Blackjacx@users.noreply.github.com> Date: Tue, 24 Feb 2026 15:52:55 +0100 Subject: [PATCH] feat: add malformedUrl case to JWT.Error Co-Authored-By: Claude Sonnet 4.6 --- CHANGELOG.md | 2 ++ Sources/Engine/JWT/JWT.swift | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8dd28b..3a85b3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +* [#29](https://github.com/blackjacx/engine/pull/29): feat: add malformedUrl case to JWT.Error - [@blackjacx](https://github.com/blackjacx). + ## [0.3.0] - 2025-10-23Z * [#25](https://github.com/blackjacx/engine/pull/25): Support request output types - [@blackjacx](https://github.com/blackjacx). diff --git a/Sources/Engine/JWT/JWT.swift b/Sources/Engine/JWT/JWT.swift index 24a94aa..24a5b79 100644 --- a/Sources/Engine/JWT/JWT.swift +++ b/Sources/Engine/JWT/JWT.swift @@ -160,5 +160,9 @@ public struct JWT { case keyContainsNoData(String) case googleServiceAccountJsonNotFound(path: String) case invalidResonse(response: URLResponse) + /// The URL string is malformed or cannot be converted to a valid `URL`. + /// - Parameter url: The malformed URL string. + case malformedUrl(String) } } +