forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesktop-release-evidence-v1.schema.json
More file actions
62 lines (62 loc) · 2.5 KB
/
Copy pathdesktop-release-evidence-v1.schema.json
File metadata and controls
62 lines (62 loc) · 2.5 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://omi.me/schemas/desktop-release-evidence-v1.schema.json",
"title": "Omi Desktop Release Evidence v1",
"type": "object",
"additionalProperties": false,
"required": ["schema_version", "type", "release_id", "phase", "generated_at", "overall", "surfaces", "metrics", "privacy"],
"properties": {
"schema_version": {"const": 1},
"type": {"const": "desktop-release-evidence"},
"release_id": {"type": "string", "pattern": "^v[0-9]+\\.[0-9]+(?:\\.[0-9]+)?\\+[0-9]+-macos$"},
"phase": {"enum": ["candidate", "beta", "stable"]},
"generated_at": {"type": "string", "format": "date-time"},
"overall": {"enum": ["PASS", "WARN", "FAIL"]},
"surfaces": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["id", "status", "classification", "expected", "actual", "message"],
"properties": {
"id": {"type": "string"},
"status": {"enum": ["PASS", "WARN", "FAIL"]},
"classification": {"enum": ["aligned", "safe_residue", "reversible_drift", "customer_visible_split", "unknown"]},
"expected": {"type": "object"},
"actual": {"type": "object"},
"message": {"type": "string"},
"repair": {"type": "string"}
}
}
},
"metrics": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["id", "status", "denominator", "time_window", "minimum_sample", "value"],
"properties": {
"id": {"type": "string"},
"status": {"enum": ["available", "unavailable"]},
"denominator": {"type": ["number", "string", "null"]},
"time_window": {"type": ["string", "null"]},
"minimum_sample": {"type": ["number", "string", "null"]},
"value": {"type": ["number", "string", "object", "array", "null"]},
"health_status": {"enum": ["healthy", "unhealthy", "unknown", null]},
"numerator": {"type": ["number", "string", "null"]},
"alarm_reason": {"type": ["string", "null"]},
"reason": {"type": "string"}
}
}
},
"privacy": {
"type": "object",
"additionalProperties": false,
"required": ["raw_private_content_included", "omitted_fields"],
"properties": {
"raw_private_content_included": {"const": false},
"omitted_fields": {"type": "array", "items": {"type": "string"}}
}
}
}
}