-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathasset.schema.json
99 lines (99 loc) · 3.41 KB
/
asset.schema.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
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "http://ns.adobe.com/adobecloud/core/1.0/asset",
"type": "object",
"title": "Asset",
"meta:extends": [
"http://ns.adobe.com/adobecloud/core/1.0#/definitions/common-properties",
"http://ns.adobe.com/adobecloud/core/1.0#/definitions/date-properties",
"https://ns.adobe.com/xdm/external/hal/resource#/definitions/hal"
],
"meta:extensible": true,
"description":
"An asset in Adobe Cloud Platform. It is not neccessarily a Digital Asset in the sense of Digital Asset Management, but a piece of content or data that can be represented in the form of a file.",
"definitions": {
"asset": {
"properties": {
"repo:id": {
"type": "string",
"meta:immutable": true,
"meta:usereditable": false,
"description":
"A unique identifier given to every addressable asset in a given repository.",
"examples": ["urn:aaid:sc:US:6dc33479-13ca-4b19-b25d-c805eff8a69e"]
},
"repo:etag": {
"meta:usereditable": false,
"type": "string",
"title": "ETag",
"description":
"An ETag is an HTTP response header returned by an HTTP/1.1 compliant web server used to determine change in content of a resource at a given URL. "
},
"repo:version": {
"type": "string",
"meta:immutable": true,
"meta:usereditable": false,
"description":
"The version ID of the piece of content. It will be generated both on explicit and implicit save or upload."
},
"tiff:imageWidth": {
"title": "Width",
"description": "Width in pixels",
"type": "integer",
"meta:usereditable": false,
"minimum": 0,
"example": 768
},
"tiff:imageLength": {
"title": "Length",
"description":
"Height in pixels. To maintain continuity with the XMP and TIFF standards, the height of an image or video is specified in the property `imageLength`. The duration of the video (also commonly called length) is specified in the property `extent`",
"type": "integer",
"meta:usereditable": false,
"minimum": 0,
"example": 1024
},
"repo:size": {
"meta:usereditable": false,
"type": "integer",
"title": "Size",
"description": "Size of the asset in bytes."
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/asset"
},
{
"$ref":
"http://ns.adobe.com/adobecloud/core/1.0#/definitions/common-properties"
},
{
"$ref":
"http://ns.adobe.com/adobecloud/core/1.0#/definitions/date-properties"
},
{
"$ref": "https://ns.adobe.com/xdm/external/hal/resource#/definitions/hal"
}
],
"required": [
"repo:name",
"repo:path",
"dc:format",
"repo:createdDate",
"repo:lastModifiedDate",
"repo:id",
"repo:etag",
"repo:version",
"repo:size"
],
"meta:status": "experimental"
}