Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return hedValidator.buildSchema().then(hedSchema => {
for (const [file, hedString] of hedStrings) {
const [isHedStringValid, hedIssues] = hedValidator.validateHedString(
hedString,
hedSchema,
true,
)
if (!isHedStringValid) {
const convertedIssues = convertHedIssuesToBidsIssues(hedIssues, file)
issues = issues.concat(convertedIssues)
}
}
return issues
})
}