Skip to content

Commit

Permalink
Merge pull request #1 from sbesson/scale_mandatory
Browse files Browse the repository at this point in the history
Mandatory scale
  • Loading branch information
will-moore authored Jan 31, 2022
2 parents a434669 + b993d8b commit df897f1
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
30 changes: 30 additions & 0 deletions 0.4/examples/invalid/missing_scale.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"multiscales": [
{
"axes": [
{
"name": "y",
"type": "space",
"units": "micrometer"
},
{
"name": "x",
"type": "space",
"units": "micrometer"
}
],
"datasets": [
{
"path": "0",
"coordinateTransformations": [
{
"translation": [1, 1],
"type": "translation"
}
]
}
],
"version": "0.4"
}
]
}
18 changes: 18 additions & 0 deletions 0.4/schemas/image.schema
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,24 @@
"coordinateTransformations": {
"type": "array",
"minItems": 1,
"contains": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"scale"
]
},
"scale": {
"type": "array",
"minItems": 2,
"items": {
"type": "number"
}
}
}
},
"items": {
"oneOf": [
{
Expand Down

0 comments on commit df897f1

Please sign in to comment.