File size: 1,021 Bytes
f877698
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2ad60ce
f877698
 
 
 
 
 
 
 
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
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "schema_version": {"type": "string", "const": "candidate_verify_v1"},
    "template_id": {"type": "string", "minLength": 1},
    "page_index": {"type": "integer", "minimum": 0},
    "verdicts": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "candidate_id": {"type": "integer", "minimum": 0},
          "opaque_hard": {"type": "string", "enum": ["yes", "no", "uncertain"]},
          "category": {"type": "string", "enum": ["dashboard", "hood", "pillar", "mirror", "ornament", "device", "wiper", "paper", "cloth", "visor", "other"]},
          "reason": {"type": "string", "minLength": 1}
        },
        "required": ["candidate_id", "opaque_hard", "category", "reason"]
      }
    }
  },
  "required": ["schema_version", "template_id", "page_index", "verdicts"]
}