forked from urkle/libuc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontract.json
65 lines (65 loc) · 1.09 KB
/
contract.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
{
"type" : "map",
"required_members" : {
"name" : {
"type" : "string",
"regex" : "[A-Z][a-z]*\\ [A-Z][a-z]"
},
"age" : {
"type" : "integer",
"lower_bound" : 18
},
"manager" : {
"type" : "boolean"
},
"sex" : {
"type" : "character"
},
"email" : {
"type" : "string",
"regex" : "[a-z]*@[a-z]*\\.[a-z]*"
}
},
"optional_members" : {
"dependants" : {
"type" : "array",
"size" : {
"type" : "integer"
"upper_bound" : 8
},
"forall" : {
"type" : "map",
"required_members" : {
"name" : {
"type" : "string",
"regex" : "[A-Z][a-z]*\\ [A-Z][a-z]"
},
"age" : {
"type" : "integer",
"lower_bound" : 0,
"upper_bound" : 17
}
}
},
"exists" : [{
"type" : "map",
"required_members" : {
"name" : {
"type" : "string",
"regex" : "[A-Z][a-z]*\\ [A-Z][a-z]"
},
"age" : {
"type" : "integer",
"lower_bound" : 5,
"upper_bound" : 5
}
}
}]
},
"salary" : {
"type" : "real",
"lower_bound" : 25000.0,
"upper_bound" : 250000.0
}
}
}