Skip to content

Commit

Permalink
Merge pull request #44 from outfoxx/feature/uri-desc
Browse files Browse the repository at this point in the history
Make URI conform to CustomStringConvertible
  • Loading branch information
kdubb authored May 24, 2023
2 parents 787589c + bc9509e commit f2abafd
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 f2abafd

Please sign in to comment.