Skip to content

Commit

Permalink
Merge pull request #5 from SwiftPackageIndex/make-codable
Browse files Browse the repository at this point in the history
Make Codable
  • Loading branch information
finestructure authored Dec 9, 2023
2 parents a45186e + 8ef2a93 commit 53170b4
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 53170b4

Please sign in to comment.