-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathMetadata.dhall
More file actions
38 lines (29 loc) · 912 Bytes
/
Metadata.dhall
File metadata and controls
38 lines (29 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
let Map = (./Prelude.dhall).Map.Type
let NonEmpty = (./Prelude.dhall).NonEmpty.Type
let Owner = ./Owner.dhall
let Location = ./Location.dhall
let Version = Text
let Sha256 = Text
let ISO8601String = Text
-- NOTE: The `ref` field is DEPRECATED and WILL BE REMOVED after 2027-01-31.
-- It is only present for backwards compatibility with older package managers.
-- Do not rely on its presence!
let PublishedMetadata =
{ hash : Sha256
, bytes : Natural
, publishedTime : ISO8601String
, compilers : NonEmpty Version
, ref : Optional Text
}
let UnpublishedMetadata =
{ reason : Text
, publishedTime : ISO8601String
, unpublishedTime : ISO8601String
}
let Metadata =
{ location : Location
, owners : Optional (List Owner)
, published : Map Version PublishedMetadata
, unpublished : Map Version UnpublishedMetadata
}
in Metadata