-
Notifications
You must be signed in to change notification settings - Fork 0
/
objects.json
74 lines (73 loc) · 2.52 KB
/
objects.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
70
71
72
73
74
{
"$schema": "https://json-schema.org/schema",
"$id": "https://www.github.com/",
"definitions": {
"#bottle": {
"$id": "#bottle",
"type" : "object",
"description": "Plastic or Glass bottle",
"properties": {
"name": { "enum": ["bottle"] },
"material": { "enum": ["plastic", "glass"]},
"quantity": { "type" : "integer"}
},
"required": ["name", "material", "quantity"]
},
"#bottleCap": {
"$id": "#bottleCap",
"type" : "object",
"description": "Plastic or metal bottle cap",
"properties": {
"name": { "enum": ["bottle cap"] },
"material": { "enum": ["plastic", "metal"]},
"quantity": { "type" : "integer"}
},
"required": ["name", "material", "quantity"]
},
"#bag" : {
"$id": "#bag",
"type": "object",
"description": "Plastic bag",
"properties": {
"name": { "enum": ["bag"] },
"material": { "enum": ["plastic"]},
"quantity": {"type": "integer"}
},
"required": ["name", "material", "quantity"]
},
"#straw" : {
"$id": "#straw",
"type": "object",
"description": "Plastic straw",
"properties": {
"name": { "enum": ["straw"] },
"material": { "enum": ["plastic"]},
"quantity": {"type": "integer"}
},
"required": ["name", "material", "quantity"]
},
"#stirrer" : {
"$id": "#stirrer",
"type": "object",
"description": "Drink stirrer",
"properties": {
"name": { "enum": ["stirrer"] },
"material": { "enum": ["plastic", "wood"]},
"quantity": {"type": "integer"}
},
"required": ["name", "material", "quantity"]
},
"#fishingLine": {
"$id": "#fishingLine",
"type": "object",
"description": "Length of Fishing line",
"properties": {
"name": { "enum": ["fishing line"]},
"material": { "enum" : ["plastic"]},
"quantity": { "type": "integer"},
"units": { "enum": ["metric", "US Customary"]}
},
"required": ["name", "material", "quantity", "units"]
}
}
}