|
1 | 1 | { |
2 | | - "type" : "object", |
3 | | - "required": ["specifications"], |
| 2 | + "type": "object", |
| 3 | + "required": ["title", "description", "sources", "authors", "path", "tags", "modules"], |
4 | 4 | "additionalProperties": false, |
5 | | - "properties" : { |
6 | | - "specifications" : { |
| 5 | + "properties": { |
| 6 | + "path": {"type": "string"}, |
| 7 | + "title": {"type": "string"}, |
| 8 | + "description": {"type": "string"}, |
| 9 | + "sources": { |
| 10 | + "type": "array", |
| 11 | + "items": {"type": "string"} |
| 12 | + }, |
| 13 | + "authors": { |
| 14 | + "type": "array", |
| 15 | + "items": {"type": "string"} |
| 16 | + }, |
| 17 | + "tags": { |
| 18 | + "type": "array", |
| 19 | + "items": {"enum": ["beginner", "intermediate", "ewd"]} |
| 20 | + }, |
| 21 | + "modules": { |
7 | 22 | "type": "array", |
8 | 23 | "items": { |
9 | 24 | "type": "object", |
10 | | - "required": ["title", "description", "sources", "authors", "path", "tags", "modules"], |
| 25 | + "required": ["path", "communityDependencies", "tlaLanguageVersion", "features", "models"], |
11 | 26 | "additionalProperties": false, |
12 | 27 | "properties": { |
13 | 28 | "path": {"type": "string"}, |
14 | | - "title": {"type": "string"}, |
15 | | - "description": {"type": "string"}, |
16 | | - "sources": { |
| 29 | + "communityDependencies": { |
17 | 30 | "type": "array", |
18 | 31 | "items": {"type": "string"} |
19 | 32 | }, |
20 | | - "authors": { |
| 33 | + "tlaLanguageVersion": {"type": "number"}, |
| 34 | + "features": { |
21 | 35 | "type": "array", |
22 | | - "items": {"type": "string"} |
| 36 | + "items": {"enum": ["pluscal", "proof", "action composition"]} |
23 | 37 | }, |
24 | | - "tags": { |
25 | | - "type": "array", |
26 | | - "items": {"enum": ["beginner", "intermediate", "ewd"]} |
27 | | - }, |
28 | | - "modules": { |
| 38 | + "models": { |
29 | 39 | "type": "array", |
30 | 40 | "items": { |
31 | 41 | "type": "object", |
32 | | - "required": ["path", "communityDependencies", "tlaLanguageVersion", "features", "models"], |
33 | 42 | "additionalProperties": false, |
| 43 | + "required": ["path", "runtime", "size", "mode", "features", "result"], |
34 | 44 | "properties": { |
35 | 45 | "path": {"type": "string"}, |
36 | | - "communityDependencies": { |
37 | | - "type": "array", |
38 | | - "items": {"type": "string"} |
| 46 | + "runtime": { |
| 47 | + "type": "string", |
| 48 | + "pattern": "^(([0-9][0-9]:[0-9][0-9]:[0-9][0-9])|unknown)$" |
| 49 | + }, |
| 50 | + "size": {"enum": ["small", "medium", "large", "unknown"]}, |
| 51 | + "distinctStates": {"type": "integer"}, |
| 52 | + "totalStates": {"type": "integer"}, |
| 53 | + "stateDepth": {"type": "integer"}, |
| 54 | + "mode": { |
| 55 | + "oneOf": [ |
| 56 | + { |
| 57 | + "enum": ["exhaustive search", "generate", "symbolic"] |
| 58 | + }, |
| 59 | + { |
| 60 | + "type": "object", |
| 61 | + "additionalProperties": false, |
| 62 | + "required": ["simulate"], |
| 63 | + "properties": { |
| 64 | + "simulate": { |
| 65 | + "type": "object", |
| 66 | + "additionalProperties": false, |
| 67 | + "required": ["traceCount"], |
| 68 | + "properties": { |
| 69 | + "traceCount": {"type": "number"} |
| 70 | + } |
| 71 | + } |
| 72 | + } |
| 73 | + } |
| 74 | + ] |
39 | 75 | }, |
40 | | - "tlaLanguageVersion": {"type": "number"}, |
41 | 76 | "features": { |
42 | 77 | "type": "array", |
43 | | - "items": {"enum": ["pluscal", "proof", "action composition"]} |
| 78 | + "items": {"enum": ["liveness", "symmetry", "view", "alias", "state constraint", "ignore deadlock"]} |
44 | 79 | }, |
45 | | - "models": { |
46 | | - "type": "array", |
47 | | - "items": { |
48 | | - "type": "object", |
49 | | - "additionalProperties": false, |
50 | | - "required": ["path", "runtime", "size", "mode", "features", "result"], |
51 | | - "properties": { |
52 | | - "path": {"type": "string"}, |
53 | | - "runtime": { |
54 | | - "type": "string", |
55 | | - "pattern": "^(([0-9][0-9]:[0-9][0-9]:[0-9][0-9])|unknown)$" |
56 | | - }, |
57 | | - "size": {"enum": ["small", "medium", "large", "unknown"]}, |
58 | | - "distinctStates": {"type": "integer"}, |
59 | | - "totalStates": {"type": "integer"}, |
60 | | - "stateDepth": {"type": "integer"}, |
61 | | - "mode": { |
62 | | - "oneOf": [ |
63 | | - { |
64 | | - "enum": ["exhaustive search", "generate", "symbolic"] |
65 | | - }, |
66 | | - { |
67 | | - "type": "object", |
68 | | - "additionalProperties": false, |
69 | | - "required": ["simulate"], |
70 | | - "properties": { |
71 | | - "simulate": { |
72 | | - "type": "object", |
73 | | - "additionalProperties": false, |
74 | | - "required": ["traceCount"], |
75 | | - "properties": { |
76 | | - "traceCount": {"type": "number"} |
77 | | - } |
78 | | - } |
79 | | - } |
80 | | - } |
81 | | - ] |
82 | | - }, |
83 | | - "features": { |
84 | | - "type": "array", |
85 | | - "items": {"enum": ["liveness", "symmetry", "view", "alias", "state constraint", "ignore deadlock"]} |
86 | | - }, |
87 | | - "result": {"enum": ["success", "assumption failure", "deadlock failure", "safety failure", "liveness failure", "unknown"]} |
88 | | - } |
89 | | - } |
90 | | - } |
| 80 | + "result": {"enum": ["success", "assumption failure", "deadlock failure", "safety failure", "liveness failure", "unknown"]} |
91 | 81 | } |
92 | 82 | } |
93 | 83 | } |
|
0 commit comments