Skip to content

Commit

Permalink
Make Codable
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Dec 9, 2023
1 parent a45186e commit 8ef2a93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/CanonicalPackageURL/CanonicalPackageURL.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Parsing


public struct CanonicalPackageURL: Equatable {
public struct CanonicalPackageURL: Codable, Equatable {
public var prefix: Prefix
public var hostname: String
public var path: String

public enum Prefix: String, CustomStringConvertible {
public enum Prefix: String, Codable, CustomStringConvertible {
case gitAt = "git@"
case http = "http"
case https = "https"
Expand Down

0 comments on commit 8ef2a93

Please sign in to comment.