Skip to content

Commit 0886492

Browse files
committed
align schema and spec text
1 parent e9141d3 commit 0886492

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,11 +1530,13 @@ Each object in `channels` MAY contain the following fields:
15301530
- `color` (string) String of 6 hexadecimal digits specifying the color of the channel in RGB format.
15311531
- `label` (string) Channel name.
15321532
- `active` (boolean) Indicates whether the channel should be displayed.
1533-
- `window` (dictionary) Values describing the windowing of the channel. All values are optional (MAY).
1534-
The `min` and `max` values may be used by viewers as the range of channel sliders.
1533+
- `window` (dictionary) Values describing the windowing of the channel.
1534+
If provided, `start` and `end` values MUST be specified.
15351535
All values can be floating-point numbers, but will likely be integers for integer pixel types.
15361536
- `min` (float) Default setting for lower bound for values of `start` field.
1537+
MAY be used by viewers as the lower range of channel sliders.
15371538
- `max` (float) Default setting for upper bound for values of `end` field.
1539+
MAY be used by viewers as the upper range of channel sliders.
15381540
- `start` (float) Start of the rendering window.
15391541
- `end` (float) End of the rendering window.
15401542
- `inverted` (boolean) If true, the rendering of darkest to brightest pixels should be inverted.

schemas/image.schema

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,7 @@
137137
},
138138
"required": [
139139
"start",
140-
"min",
141-
"end",
142-
"max"
140+
"end"
143141
]
144142
},
145143
"label": {
@@ -153,6 +151,9 @@
153151
},
154152
"active": {
155153
"type": "boolean"
154+
},
155+
"inverted": {
156+
"type": "boolean"
156157
}
157158
}
158159
}

0 commit comments

Comments
 (0)