scratch-parser/lib/sb2_schema.json
Karishma Chadha b808e7447f feat(schemas): add support for sprite files for 2.0 and 3.0
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
2018-05-02 23:46:26 -04:00

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"
]
}
}
}
}
}
]
}