Skip to content

Commit

Permalink
Use HttpUrl instead of Url
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Oct 25, 2023
1 parent 0e83cb5 commit c426ef4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/model/model.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ object Release:
given packagesLabel: CodlLabel[Release, "packages"] = CodlLabel("provide")

case class Release
(id: ProjectId, name: Text, stream: StreamId, website: Maybe[Url], description: InlineMd,
(id: ProjectId, name: Text, stream: StreamId, website: Maybe[HttpUrl], description: InlineMd,
license: LicenseId, date: Date, lifetime: Int, repo: Snapshot, packages: List[Package],
keywords: List[Keyword]):
def expiry: Date = date + lifetime.days
Expand All @@ -57,7 +57,7 @@ case class Release
Definition(name, description, website, license, keywords, vault)


case class Snapshot(url: Url, commit: CommitHash, branch: Maybe[Branch])
case class Snapshot(url: HttpUrl, commit: CommitHash, branch: Maybe[Branch])


object Vault:
Expand All @@ -77,7 +77,7 @@ case class Local(forks: List[Fork])

case class Fork(id: ProjectId, path: Path)

case class Ecosystem(id: EcosystemId, version: Int, url: Url, branch: Branch)
case class Ecosystem(id: EcosystemId, version: Int, url: HttpUrl, branch: Branch)

case class Mount(path: WorkPath, repo: Snapshot)

Expand All @@ -100,7 +100,7 @@ object Project:
given modulesLabel: CodlLabel[Project, "modules"] = CodlLabel("module")

case class Project
(id: ProjectId, name: Text, description: InlineMd, modules: List[Module], website: Url, license: Maybe[LicenseId],
(id: ProjectId, name: Text, description: InlineMd, modules: List[Module], website: HttpUrl, license: Maybe[LicenseId],
keywords: List[Keyword]):

// FIXME: Handle not-found
Expand Down Expand Up @@ -182,5 +182,5 @@ object WorkPath:
case class WorkPath(descent: List[PathName[GeneralForbidden]])

case class Definition
(name: Text, description: InlineMd, website: Maybe[Url], license: Maybe[LicenseId], keywords: List[Keyword],
(name: Text, description: InlineMd, website: Maybe[HttpUrl], license: Maybe[LicenseId], keywords: List[Keyword],
source: Vault | Workspace)

0 comments on commit c426ef4

Please sign in to comment.