-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobservation.schema.json
More file actions
37 lines (37 loc) · 1.23 KB
/
Copy pathobservation.schema.json
File metadata and controls
37 lines (37 loc) · 1.23 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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://dawnportinfo-design.example/schemas/visual-leak-checker/observation.schema.json",
"title": "Visual Leak Checker Observation Set",
"type": "object",
"additionalProperties": false,
"required": ["version", "artifact", "observations"],
"properties": {
"version": { "type": "string", "const": "visual-leak-observations-v1" },
"artifact": {
"type": "object",
"additionalProperties": false,
"required": ["kind", "name"],
"properties": {
"kind": { "type": "string", "enum": ["screenshot", "pdf", "image"] },
"name": { "type": "string", "minLength": 1 }
}
},
"observations": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["id", "kind", "text", "context"],
"properties": {
"id": { "type": "string", "minLength": 1 },
"kind": {
"type": "string",
"enum": ["visible_text", "notification", "browser_ui", "map_ui", "qr_code", "device_ui", "document_metadata"]
},
"text": { "type": "string" },
"context": { "type": "string" }
}
}
}
}
}