-
Notifications
You must be signed in to change notification settings - Fork 20
/
schema.json
55 lines (55 loc) · 1.53 KB
/
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
{
"$schema": "https://json-schema.org/draft-07/schema",
"$id": "https://anandchowdhary.github.io/okrs/schema.json",
"title": "OKR",
"description": "Object and Key Results with progress",
"type": "object",
"properties": {
"year": {
"description": "Year",
"type": "integer",
"minimum": 2000,
"maximum": 3000
},
"quarter": {
"description": "Quarter",
"type": "integer",
"minimum": 1,
"maximum": 4
},
"objectives": {
"description": "Objectives for this quarter",
"type": "array",
"items": {
"description": "Key results for this objective",
"type": "object",
"properties": {
"name": { "type": "string" },
"key_results": {
"description": "Metrics for this key result",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"target_result": { "type": "number" },
"current_result": { "type": "number" }
},
"additionalProperties": false,
"required": ["name", "target_result", "current_result"]
},
"minItems": 2,
"maxItems": 5,
"uniqueItems": true
}
},
"additionalProperties": false,
"required": ["name", "key_results"]
},
"minItems": 1,
"maxItems": 5,
"uniqueItems": true
}
},
"required": ["year", "quarter", "objectives"]
}