ci: show all errors in comment/log

This commit is contained in:
Rohit Gohri 2020-05-03 23:25:24 +05:30
parent afced1a6b7
commit 2f2ce100fd

View file

@ -9,7 +9,11 @@ async function main() {
const data = srcData.filter(d => !masterDataUrls.includes(d.url));
const errors = data
.map(person => Schema.validate(person))
.map(person =>
Schema.validate(person, {
abortEarly: false,
})
)
.filter(v => v.error)
.map(v => v.error);