-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.yaml
42 lines (40 loc) · 1.09 KB
/
schema.yaml
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
$id: "https://raw.githubusercontent.com/aharren/simple-time-series/main/sts.json.eqd.iutsms.fp64.1/schema.yaml"
$schema: "https://json-schema.org/draft/2020-12/schema"
$ref: "#/$defs/document"
$defs:
document:
type: object
properties:
typ:
type: string
pattern: "^(sts\\.json\\.eqd\\.iutsms\\.fp64\\.1)$"
tss:
type: string
format: "iso-date-time"
pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}Z$"
x-constraint: .value <= tse.value
tse:
type: string
format: "iso-date-time"
pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}Z$"
x-constraint: .value >= tss.value
tsd:
type: integer
minimum: 1
val:
type: object
patternProperties:
"^.*$":
type: array
items:
type: number
x-constraint: .length == 1+(tse-tss)/tsd
patternProperties:
'^x-': {}
required:
- typ
- tss
- tse
- tsd
- val
unevaluatedProperties: false