forked from ome/ngff-spec
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaxes.schema
More file actions
64 lines (64 loc) · 1.47 KB
/
axes.schema
File metadata and controls
64 lines (64 loc) · 1.47 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
63
64
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://ngff.openmicroscopy.org/0.6dev2/schemas/axes.schema",
"title": "NGFF Axes",
"description": "JSON from OME-NGFF .zattrs",
"type": "array",
"uniqueItems": true,
"minItems": 1,
"maxItems": 5,
"items": {
"$ref": "#/$defs/axis"
},
"$comment": "Ensure that there exist at most three space axes",
"contains": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"space"
]
},
"unit": {
"type": "string"
}
}
},
"minContains": 2,
"maxContains": 3,
"$defs": {
"axis": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Name of the axis. Must be unique within the coordinate system."
},
"longName": {
"type": "string",
"description": "Longer name or description of the axis."
},
"type": {
"type": "string",
"description": "Type of the axis. Can be a predefined type or custom type."
},
"discrete": {
"type": "boolean",
"description": "Whether the dimension is discrete"
},
"unit": {
"type": "string",
"description": "Unit for the axis"
}
},
"required": [
"name"
]
}
}
}