Skip to content

Commit

Permalink
Make URI conform to CustomStringConvertible
Browse files Browse the repository at this point in the history
  • Loading branch information
kdubb committed May 17, 2023
1 parent 787589c commit bc9509e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/Sunday/URI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ public struct URI: Equatable, Hashable {

}

extension URI: CustomStringConvertible {

public var description: String { string ?? "<invalid>" }

}

extension URI: Codable {

public init(from decoder: Decoder) throws {
Expand Down

0 comments on commit bc9509e

Please sign in to comment.