1 | {
|
2 | "$id": "https://scratch.mit.edu/sb3_schema.json",
|
3 | "$schema": "http://json-schema.org/schema#",
|
4 | "description": "Scratch 3.0 Project Schema",
|
5 | "type": "object",
|
6 | "properties": {
|
7 | "meta": {
|
8 | "type": "object",
|
9 | "properties": {
|
10 | "semver": {
|
11 | "type": "string",
|
12 | "pattern": "^(3\\.[0-9]+\\.[0-9]+)$"
|
13 | },
|
14 | "vm": {
|
15 | "type": "string",
|
16 | "pattern": "^([0-9]+\\.[0-9]+\\.[0-9]+)($|-)"
|
17 | },
|
18 | "agent": {
|
19 | "type": "string"
|
20 | },
|
21 | "origin": {
|
22 | "type": "string"
|
23 | }
|
24 | },
|
25 | "required": [
|
26 | "semver"
|
27 | ]
|
28 | },
|
29 | "targets": {
|
30 | "type": "array",
|
31 | "items": [
|
32 | {
|
33 | "allOf": [
|
34 | {"$ref": "sb3_definitions.json#/definitions/stage" },
|
35 | {"$ref": "sb3_definitions.json#/definitions/target"}
|
36 | ]
|
37 | }
|
38 | ],
|
39 | "additionalItems": {
|
40 | "allOf": [
|
41 | {"$ref": "sb3_definitions.json#/definitions/sprite"},
|
42 | {"$ref": "sb3_definitions.json#/definitions/target"}
|
43 | ]
|
44 | }
|
45 | }
|
46 | },
|
47 | "required": [
|
48 | "meta",
|
49 | "targets"
|
50 | ]
|
51 | }
|