-
Notifications
You must be signed in to change notification settings - Fork 0
/
muesli-schema.json
70 lines (69 loc) · 2.32 KB
/
muesli-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"title": "Core schema meta-schema",
"definitions": {
"muesliType": {
"oneOf": [
{ "$ref": "#/definitions/objectType" },
{ "$ref": "#/definitions/arrayType" },
{ "$ref": "#/definitions/numberType" },
{ "$ref": "#/definitions/booleanType" },
{ "$ref": "#/definitions/stringType" }
]
},
"objectType": {
"type": "object",
"properties": {
"type": { "type": "string", "enum": ["object"] },
"properties": { "type": "object", "additionalProperties": { "$ref": "#/definitions/muesliType" } },
"required": { "type": "array", "items": { "type": "string" } },
"additionalProperties": { "type": "boolean" }
},
"additionalProperties": false,
"required": ["type", "properties", "required", "additionalProperties"]
},
"arrayType": {
"type": "object",
"properties": {
"type": { "type": "string", "enum": ["array"] },
"items": { "$ref": "#/definitions/muesliType" }
},
"additionalProperties": false,
"required": ["type", "items"]
},
"numberType": {
"type": "object",
"properties": {
"type": { "type": "string", "enum": ["number"] }
},
"additionalProperties": false,
"required": ["type"]
},
"stringType": {
"type": "object",
"properties": {
"type": { "type": "string", "enum": ["string"] },
"enum": { "type": "array", "items": { "type": "string" } }
},
"additionalProperties": false,
"required": ["type"]
},
"booleanType": {
"type": "object",
"properties": {
"type": { "type": "string", "enum": ["boolean"] }
},
"additionalProperties": false,
"required": ["type"]
}
},
"type": "object",
"properties": {
"$schema": { "type": "string", "format": "uri" },
"type": { "type": "string", "enum": ["object"] },
"properties": { "type": "object", "additionalProperties": { "$ref": "#/definitions/muesliType" } },
"required": { "type": "array", "items": { "type": "string" } },
"additionalProperties": { "type": "boolean" }
},
"additionalProperties": false,
"required": ["type", "properties", "required", "additionalProperties"]
}