From bc9509e725039ee0d6c637bcb915bd9f1e863cab Mon Sep 17 00:00:00 2001 From: Kevin Wooten Date: Wed, 17 May 2023 12:20:35 -0700 Subject: [PATCH] Make URI conform to CustomStringConvertible --- Sources/Sunday/URI.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/Sunday/URI.swift b/Sources/Sunday/URI.swift index 20511a1f..c1fa42c7 100644 --- a/Sources/Sunday/URI.swift +++ b/Sources/Sunday/URI.swift @@ -66,6 +66,12 @@ public struct URI: Equatable, Hashable { } +extension URI: CustomStringConvertible { + + public var description: String { string ?? "" } + +} + extension URI: Codable { public init(from decoder: Decoder) throws {