Skip to content

Commit 22ce389

Browse files
committed
Enabled reporting all validation errors from Ajv
Users should be able to get all the errors resulting from the validation, not just the first one. Then they can decide how to use the information. Knowing if a schema is valid or not might be enough for simple use cases, but if we implement this minor modification, we'll be enabling more use cases.
1 parent 538d4f4 commit 22ce389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/validators/schema.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function validateSchema (api) {
6464
*/
6565
function initializeAjv (draft04 = true) {
6666
const opts = {
67-
allErrors: false,
67+
allErrors: true,
6868
strict: false,
6969
validateFormats: false,
7070
};

0 commit comments

Comments
 (0)