diff --git a/spec_tests/javascript_tests.json b/spec_tests/javascript_tests.json index 9b12c14e..fd4b2e7e 100644 --- a/spec_tests/javascript_tests.json +++ b/spec_tests/javascript_tests.json @@ -3383,7 +3383,7 @@ } }, "response": { - "HED": "Label/#" + "Description": "This is a response" } } ], @@ -3413,7 +3413,7 @@ "face": "Statistical-accuracy/0.677, {response}" } }, - "response": "Label/#" + "response": "This is a response" }, "events": [ ["onset", "duration", "event_code", "response", "HED"], diff --git a/validator/event/special.js b/validator/event/special.js index 97734d66..eb5228fc 100644 --- a/validator/event/special.js +++ b/validator/event/special.js @@ -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) { @@ -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 diff --git a/validator/event/specialTags.json b/validator/event/specialTags.json index 7424b1a9..7190340a 100644 --- a/validator/event/specialTags.json +++ b/validator/event/specialTags.json @@ -30,7 +30,7 @@ "ERROR_CODE": "DEF_INVALID", "subgroupTagsNotAllowed": [], "defTagRequired": false, - "otherAllowedTags": [] + "otherAllowedTags": null }, "Def-expand": { "child": true,