-
Notifications
You must be signed in to change notification settings - Fork 1
/
cats-schema.json
51 lines (51 loc) · 1.28 KB
/
cats-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
{
"types": [
{
"name": "cat",
"attributes": {
"name": {
"generator": ["one-of", ["Cleo", "Lucy", "Oliver", "Tiger"]],
"constraints": ["unique"]
},
"favorite": {
"generator": ["one-of", ["fish", "mice", "birds"]]
},
"fed-by": {
"deps": [[["fed-by/cat", "cat/name"], "fed-by/person", "person/name"]]
}
}
}, {
"name": "person",
"refs": {
"cat": {
"deps": ["cat/name"]
}
},
"attributes": {
"name": {
"generator": ["one-of", ["Fred", "Wilma", "Barney", "Betty"]],
"constraints": ["unique"]
},
"dilemma": {
"deps": ["person/name", ["person/cat", "cat/name"], ["person/cat", "cat/favorite"]],
"generator": ["format", "%s loves %s but %2$s loves %s"]
}
}
}, {
"name": "fed-by",
"refs": {
"pair": {
"unique": [true, false],
"deps": ["cat/name", "person/name"],
"attributes": ["cat", "person"]
}
},
"attributes": {
"arrangement": {
"deps": [["fed-by/person", "person/name"], ["fed-by/cat", "cat/name"]],
"generator": ["format", "%s feeds %s"]
}
}
}
]
}