Skip to content

Commit

Permalink
Merge pull request #309 from nellh/json-schema-draft-6
Browse files Browse the repository at this point in the history
Upgrade JSON schemas to draft 6 and ajv to 5.2.2
  • Loading branch information
chrisgorgo authored Sep 11, 2017
2 parents a392c21 + a502e10 commit 2f2d2f7
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"homepage": "https://github.com/INCF/bids-validator",
"dependencies": {
"ajv": "^4.9.0",
"ajv": "^5.2.2",
"async": "^2.1.5",
"bytes": "^2.3.0",
"cliff": "^0.1.10",
Expand Down
60 changes: 30 additions & 30 deletions validators/schemas/bold.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"CogAtlasID": {
"type": "string"
},
"EchoTime": {
"type": "number"
},
"EffectiveEchoSpacing": {
"type": "number"
},
"PhaseEncodingDirection": {
"type": "string"
},
"RepetitionTime": {
"type": "number"
},
"SliceEncodingDirection": {
"type": "string"
},
"SliceTiming": {
"type": "array",
"items": {
"type": "number"
}
},
"TaskName": {
"type": "string"
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"properties": {
"CogAtlasID": {
"type": "string"
},
"EchoTime": {
"type": "number"
},
"EffectiveEchoSpacing": {
"type": "number"
},
"PhaseEncodingDirection": {
"type": "string"
},
"RepetitionTime": {
"type": "number"
},
"SliceEncodingDirection": {
"type": "string"
},
"SliceTiming": {
"type": "array",
"items": {
"type": "number"
}
},
"TaskName": {
"type": "string"
}
}
}
}
58 changes: 29 additions & 29 deletions validators/schemas/dataset_description.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://example.com/example.json",
"properties": {
"Authors": {
"items": {
"type": "string"
},
"type": "array"
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "http://example.com/example.json",
"properties": {
"Authors": {
"items": {
"type": "string"
},
"type": "array"
},
"BIDSVersion": {
"type": "string"
},
"Funding": {
"type": "string"
},
"HowToAcknowledge": {
"type": "string"
},
"License": {
"type": "string"
},
"Name": {
"type": "string"
}
},
"BIDSVersion": {
"type": "string"
},
"Funding": {
"type": "string"
},
"HowToAcknowledge": {
"type": "string"
},
"License": {
"type": "string"
},
"Name": {
"type": "string"
}
},
"required": [
"Name",
"BIDSVersion"
],
"type": "object"
"required": [
"Name",
"BIDSVersion"
],
"type": "object"
}

0 comments on commit 2f2d2f7

Please sign in to comment.