File size: 1,903 Bytes
52585d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
63
64
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://aiflow.local/schemas/p-formula-v1.json",
  "title": "AIFlow Math Ink 0.6 P Formula Record",
  "type": "object",
  "required": [
    "formula_id",
    "origin_id",
    "writer_id",
    "device_id",
    "source_id",
    "split",
    "canvas_width",
    "canvas_height",
    "rights_track",
    "commercial_training_allowed",
    "symbols"
  ],
  "properties": {
    "formula_id": {"type": "string", "minLength": 1},
    "origin_id": {"type": "string", "minLength": 1},
    "writer_id": {"type": "string", "minLength": 1},
    "device_id": {"type": "string", "minLength": 1},
    "source_id": {"type": "string", "minLength": 1},
    "split": {"enum": ["training", "validation", "test"]},
    "canvas_width": {"type": "number", "exclusiveMinimum": 0},
    "canvas_height": {"type": "number", "exclusiveMinimum": 0},
    "rights_track": {"const": "P"},
    "commercial_training_allowed": {"const": true},
    "symbols": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": ["token", "strokes"],
        "properties": {
          "token": {"type": "string", "minLength": 1},
          "strokes": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "required": ["x", "y"],
                "properties": {
                  "x": {"type": "number"},
                  "y": {"type": "number"},
                  "t": {"type": ["number", "null"]},
                  "pressure": {"type": ["number", "null"]}
                },
                "additionalProperties": true
              }
            }
          }
        },
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}