Skip to content

Commit 2f2d2f7

Browse files
authored
Merge pull request #309 from nellh/json-schema-draft-6
Upgrade JSON schemas to draft 6 and ajv to 5.2.2
2 parents a392c21 + a502e10 commit 2f2d2f7

File tree

3 files changed

+60
-60
lines changed

3 files changed

+60
-60
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"homepage": "https://github.com/INCF/bids-validator",
2424
"dependencies": {
25-
"ajv": "^4.9.0",
25+
"ajv": "^5.2.2",
2626
"async": "^2.1.5",
2727
"bytes": "^2.3.0",
2828
"cliff": "^0.1.10",

validators/schemas/bold.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
3-
"type": "object",
4-
"properties": {
5-
"CogAtlasID": {
6-
"type": "string"
7-
},
8-
"EchoTime": {
9-
"type": "number"
10-
},
11-
"EffectiveEchoSpacing": {
12-
"type": "number"
13-
},
14-
"PhaseEncodingDirection": {
15-
"type": "string"
16-
},
17-
"RepetitionTime": {
18-
"type": "number"
19-
},
20-
"SliceEncodingDirection": {
21-
"type": "string"
22-
},
23-
"SliceTiming": {
24-
"type": "array",
25-
"items": {
26-
"type": "number"
27-
}
28-
},
29-
"TaskName": {
30-
"type": "string"
2+
"$schema": "http://json-schema.org/draft-06/schema#",
3+
"type": "object",
4+
"properties": {
5+
"CogAtlasID": {
6+
"type": "string"
7+
},
8+
"EchoTime": {
9+
"type": "number"
10+
},
11+
"EffectiveEchoSpacing": {
12+
"type": "number"
13+
},
14+
"PhaseEncodingDirection": {
15+
"type": "string"
16+
},
17+
"RepetitionTime": {
18+
"type": "number"
19+
},
20+
"SliceEncodingDirection": {
21+
"type": "string"
22+
},
23+
"SliceTiming": {
24+
"type": "array",
25+
"items": {
26+
"type": "number"
27+
}
28+
},
29+
"TaskName": {
30+
"type": "string"
31+
}
3132
}
32-
}
3333
}
Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
3-
"id": "http://example.com/example.json",
4-
"properties": {
5-
"Authors": {
6-
"items": {
7-
"type": "string"
8-
},
9-
"type": "array"
2+
"$schema": "http://json-schema.org/draft-06/schema#",
3+
"$id": "http://example.com/example.json",
4+
"properties": {
5+
"Authors": {
6+
"items": {
7+
"type": "string"
8+
},
9+
"type": "array"
10+
},
11+
"BIDSVersion": {
12+
"type": "string"
13+
},
14+
"Funding": {
15+
"type": "string"
16+
},
17+
"HowToAcknowledge": {
18+
"type": "string"
19+
},
20+
"License": {
21+
"type": "string"
22+
},
23+
"Name": {
24+
"type": "string"
25+
}
1026
},
11-
"BIDSVersion": {
12-
"type": "string"
13-
},
14-
"Funding": {
15-
"type": "string"
16-
},
17-
"HowToAcknowledge": {
18-
"type": "string"
19-
},
20-
"License": {
21-
"type": "string"
22-
},
23-
"Name": {
24-
"type": "string"
25-
}
26-
},
27-
"required": [
28-
"Name",
29-
"BIDSVersion"
30-
],
31-
"type": "object"
27+
"required": [
28+
"Name",
29+
"BIDSVersion"
30+
],
31+
"type": "object"
3232
}

0 commit comments

Comments
 (0)