mirror of
https://github.com/scratchfoundation/scratch-parser.git
synced 2025-08-28 22:18:45 -04:00
51 lines
1.4 KiB
JSON
51 lines
1.4 KiB
JSON
{
|
|
"$id": "https://scratch.mit.edu/sb3_schema.json",
|
|
"$schema": "http://json-schema.org/schema#",
|
|
"description": "Scratch 3.0 Project 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"
|
|
},
|
|
"origin": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"semver"
|
|
]
|
|
},
|
|
"targets": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"allOf": [
|
|
{"$ref": "sb3_definitions.json#/definitions/stage" },
|
|
{"$ref": "sb3_definitions.json#/definitions/target"}
|
|
]
|
|
}
|
|
],
|
|
"additionalItems": {
|
|
"allOf": [
|
|
{"$ref": "sb3_definitions.json#/definitions/sprite"},
|
|
{"$ref": "sb3_definitions.json#/definitions/target"}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"meta",
|
|
"targets"
|
|
]
|
|
}
|