mirror of
https://github.com/scratchfoundation/scratch-parser.git
synced 2025-08-28 22:18:45 -04:00
refactor(sprite3_schema): clean up sprite3 representation
This commit is contained in:
parent
f0959386c1
commit
62b96fa49f
1 changed files with 3 additions and 35 deletions
|
@ -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"}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue