forked from Sage-Bionetworks/mobile-client-json
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ArchiveMetadata.json
117 lines (117 loc) · 3.31 KB
/
ArchiveMetadata.json
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"$id" : "https://sage-bionetworks.github.io/mobile-client-json/schemas/v2/ArchiveMetadata.json",
"$schema" : "http://json-schema.org/draft-07/schema#",
"type" : "object",
"title" : "ArchiveMetadata",
"description" : "The metadata for an archive that can be zipped using the app developer's choice of third-party archival tools.",
"definitions" : {
"FileInfo" : {
"$id" : "#FileInfo",
"type" : "object",
"title" : "FileInfo",
"description" : "",
"properties" : {
"filename" : {
"type" : "string",
"description" : "The filename of the archive object. This should be unique within the manifest.",
"format" : "uri-reference"
},
"timestamp" : {
"type" : "string",
"description" : "The file creation date.",
"format" : "date-time"
},
"contentType" : {
"type" : "string",
"description" : "The content type of the file."
},
"identifier" : {
"type" : "string",
"description" : "The identifier for the result."
},
"stepPath" : {
"type" : "string",
"description" : "The full path to the result if it is within the step history."
},
"jsonSchema" : {
"type" : "string",
"description" : "The uri for the json schema if the content type is 'application/json'.",
"format" : "uri"
},
"metadata" : {
"description" : "Any additional metadata about this file."
}
},
"required" : [
"filename",
"timestamp"
],
"examples" : [
{
"filename" : "foo.json",
"timestamp" : "2023-04-18T16:11:54.228-07:00",
"contentType" : "application/json",
"identifier" : "foo",
"stepPath" : "Bar/foo",
"jsonSchema" : "http://example.org/schemas/v1/Foo.json",
"metadata" : {
"value" : 1
}
}
]
}
},
"properties" : {
"appName" : {
"type" : "string",
"description" : "Name of the app that built the archive."
},
"appVersion" : {
"type" : "string",
"description" : "Version of the app that built the archive."
},
"deviceInfo" : {
"type" : "string",
"description" : "Information about the specific device."
},
"deviceTypeIdentifier" : {
"type" : "string",
"description" : "Specific model identifier of the device."
},
"files" : {
"type" : "array",
"description" : "A list of the files included in this archive.",
"items" : {
"$ref" : "#/definitions/FileInfo"
}
}
},
"required" : [
"appName",
"appVersion",
"deviceInfo",
"deviceTypeIdentifier",
"files"
],
"examples" : [
{
"appName" : "???",
"appVersion" : "???",
"deviceInfo" : "Mac Version 13.2.1 (Build 22D68)",
"deviceTypeIdentifier" : "Mac",
"files" : [
{
"contentType" : "application/json",
"filename" : "foo.json",
"identifier" : "foo",
"jsonSchema" : "https://example.com/foo.json",
"metadata" : {
"foo" : "baroo"
},
"stepPath" : "Goo/foo",
"timestamp" : "2017-10-16T22:28:09.000-07:00"
}
]
}
]
}