Skip to content

Commit

Permalink
Merge pull request #785 from IanCa/develop
Browse files Browse the repository at this point in the history
Allow HED in sidecar lists again
  • Loading branch information
VisLab authored Oct 25, 2023
2 parents 91dc47d + 26d02d3 commit 3f65863
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions hed/validator/sidecar_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,6 @@ def _check_dict(key, data_dict):
@staticmethod
def _check_list(key, data_list):
for sub_data in data_list:
if sub_data == key:
return True
if SidecarValidator._check_for_key(key, sub_data):
return True
return False
Expand Down
2 changes: 1 addition & 1 deletion tests/validator/test_sidecar_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ def test_bad_structure_HED_in_ignored(self):
'''
sidecar = Sidecar(io.StringIO(sidecar_with_na_json))
issues = sidecar.validate(self.hed_schema)
self.assertEqual(len(issues), 3)
self.assertEqual(len(issues), 2)

0 comments on commit 3f65863

Please sign in to comment.