mirror of
https://github.com/scratchfoundation/scratch-parser.git
synced 2025-08-28 22:18:45 -04:00
refactor schemas to support sprite2 and sprite3 files, while reusing rules in common with sb2 and sb3 files BREAKING CHANGE: Change to main API which now takes an additional boolean argument indicating whether a sprite or project is being validated
54 lines
1.9 KiB
JSON
54 lines
1.9 KiB
JSON
{
|
|
"$id": "https://scratch.mit.edu/sb2_schema.json",
|
|
"$schema": "http://json-schema.org/schema#",
|
|
"description": "Scratch 2.0 project schema",
|
|
"type": "object",
|
|
"allOf": [
|
|
{"$ref": "sb2_definitions.json#/definitions/stage_object"},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"flashVersion": {
|
|
"type": "string"
|
|
},
|
|
"swfVersion": {
|
|
"type": "string"
|
|
},
|
|
"userAgent": {
|
|
"type": "string"
|
|
},
|
|
"videoOn": {
|
|
"type": "boolean"
|
|
},
|
|
"savedExtensions": {
|
|
"type": "array",
|
|
"properties": {
|
|
"extensionName": {
|
|
"type": "string"
|
|
},
|
|
"blockSpecs": {
|
|
"type": "array"
|
|
},
|
|
"menus": {
|
|
"type": "object"
|
|
},
|
|
"javascriptURL": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"extensionName",
|
|
"blockSpecs",
|
|
"menus",
|
|
"javascriptURL"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|