Skip to content

Commit 97c0270

Browse files
committed
Add assets to target definitions
1 parent ff99370 commit 97c0270

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

lib/sb3_definitions.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,35 @@
9595
"name"
9696
]
9797
},
98+
"asset": {
99+
"type": "object",
100+
"properties": {
101+
"assetId": { "$ref": "#/definitions/assetId"},
102+
"dataFormat": {
103+
"type": "string"
104+
},
105+
"contentType": {
106+
"type": "string"
107+
},
108+
"md5ext": {
109+
"type": "string",
110+
"pattern": "^[a-fA-F0-9]{32}\\.[a-zA-Z0-9]+$"
111+
},
112+
"name": {
113+
"type": "string"
114+
},
115+
"lastModified": {
116+
"type": "integer"
117+
}
118+
},
119+
"required": [
120+
"assetId",
121+
"dataFormat",
122+
"contentType",
123+
"name",
124+
"lastModified"
125+
]
126+
},
98127
"scalar_variable": {
99128
"type": "array",
100129
"items": [
@@ -460,6 +489,11 @@
460489
"items": {"$ref":"#/definitions/sound"},
461490
"uniqueItems": true
462491
},
492+
"assets": {
493+
"type": "array",
494+
"items": {"$ref":"#/definitions/asset"},
495+
"uniqueItems": true
496+
},
463497
"volume": {
464498
"type": "number"
465499
}

0 commit comments

Comments
 (0)