Skip to content

Commit

Permalink
Merge pull request #191 from VisLab/update-spec
Browse files Browse the repository at this point in the history
Updated spec and corrected syntax error
  • Loading branch information
VisLab authored Sep 11, 2024
2 parents 0399f5a + 19b76cb commit 651b4a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions spec_tests/javascript_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -3383,7 +3383,7 @@
}
},
"response": {
"HED": "Label/#"
"Description": "This is a response"
}
}
],
Expand Down Expand Up @@ -3413,7 +3413,7 @@
"face": "Statistical-accuracy/0.677, {response}"
}
},
"response": "Label/#"
"response": "This is a response"
},
"events": [
["onset", "duration", "event_code", "response", "HED"],
Expand Down
7 changes: 5 additions & 2 deletions validator/event/special.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ export class SpecialTagValidator {
return tag._schemaTag.name in this.specialTags
}

/** Check a list of tags for whether they can have children **/
// List of parsed hed tags that
mustBeGroup(tagList) {}

/** Check a list of special HEDTags tags for whether they can have children **/
checkTags(tagList) {
const issueList = []
for (const tag of tagList) {
Expand All @@ -41,7 +44,7 @@ export class SpecialTagValidator {
const topSubgroups = tagGroup.tag.filter((tag) => tag instanceof ParsedHedGroup)
}

checktopTags(tag, topSubgroups) {
checkTopGroupTags(tag, topSubgroups) {
const issueList = []
if (this.isSpecialTag(tag)) {
return issueList
Expand Down
2 changes: 1 addition & 1 deletion validator/event/specialTags.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"ERROR_CODE": "DEF_INVALID",
"subgroupTagsNotAllowed": [],
"defTagRequired": false,
"otherAllowedTags": []
"otherAllowedTags": null
},
"Def-expand": {
"child": true,
Expand Down

0 comments on commit 651b4a8

Please sign in to comment.