refactor(sprite3_schema): clean up sprite3 representation

This commit is contained in:
Karishma Chadha 2018-05-03 16:20:54 -04:00
parent f0959386c1
commit 62b96fa49f

View file

@ -3,40 +3,8 @@
"$schema": "http://json-schema.org/schema#",
"description": "Scratch 3.0 Sprite Schema",
"type": "object",
"properties": {
"meta": {
"type": "object",
"properties": {
"semver": {
"type": "string",
"pattern": "^(3.[0-9]+.[0-9]+)$"
},
"vm": {
"type": "string",
"pattern": "^([0-9]+.[0-9]+.[0-9]+)($|-)"
},
"agent": {
"type": "string"
}
},
"required": [
"semver"
]
},
"targets": {
"type": "array",
"items": [
{
"allOf": [
{"$ref": "sb3_definitions.json#/definitions/sprite"},
{"$ref": "sb3_definitions.json#/definitions/target"}
]
}
],
"additionalItems": false
}
},
"required": [
"targets"
"allOf": [
{"$ref": "sb3_definitions.json#/definitions/sprite"},
{"$ref": "sb3_definitions.json#/definitions/target"}
]
}