Currentely validate(data, schema) only returns SingleIssue, even if there are more than 1 failure.
using JSON, JSONSchema
data = JSON.parse("""{
"Title": null,
"Desc": 15
}
""")
schema = JSON.parse("""{
"properties": {
"Title": {
"type": "string"
},
"Desc": {
"type": "string"
}
}
}
""")
JSONSchema.validate(data, Schema(schema))
But I'm trying to setup JSONSchema validation on github action with large and complex data. So, it's preferable to present all the issues from the sigle run.
How about adding validateall, which returns Array{SingleIssue, 1} for all the validations?