We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3730364 + 9458324 commit 78e409dCopy full SHA for 78e409d
tests/json.spec.js
@@ -24,4 +24,11 @@ describe('JSON', function(){
24
assert(issues && issues.length === 1);
25
});
26
27
+
28
+ it('should detect negative value for SliceTiming', function(){
29
+ var jsonObj = '{"SliceTiming": [-1.0, 0.0, 1.0]}';
30
+ validate.JSON(file, jsonObj, function (issues) {
31
+ assert(issues.length === 1 && issues[0].code == 55);
32
+ });
33
34
validators/schemas/bold.json
@@ -23,7 +23,8 @@
23
"SliceTiming": {
"type": "array",
"items": {
- "type": "number"
+ "type": "number",
+ "minimum": 0
}
},
"TaskName": {
0 commit comments