[v0.1.1] ValidateJSONSchema returns only 1 error, but should return several errors.
Closed this issue · 0 comments
siller174 commented
ValidateJSONSchema returns only 1 error, but should return several errors.
body := []byte(`
{
"firstName": "Boris",
"lastName": "Britva",
"age": "1"
}
`)
jsSchemaString = `
{
"$id": "https://example.com/person.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Person",
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "integer"
},
"age": {
"type": "integer"
}
}
}