From c976b720956d3e4db12796ac34fa3f7d9efc5de8 Mon Sep 17 00:00:00 2001 From: Minttu Hurme Date: Tue, 5 Nov 2024 14:41:15 +0200 Subject: [PATCH] Update README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f739eb7..8eec8b0 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ validationOption `noFailValidation: false` (default) throws an error when the re validationOption `noFailValidation: true` saves errors in validationErrors instead of throwing an error when the record fails validation checks ```js +// return validationErrors record.getValidationErrors(); ``` @@ -69,7 +70,7 @@ MarcRecord.setValidationOptions( noControlCharacters: false, // Do not allow ASCII control characters in field/subfield values noAdditionalProperties: false, // Do not allow additional properties in fields - strict: false // If true, set all validationOptions to true + strict: false, // If true, set all validationOptions to true noFailValidation: false // If true, do not error if validation fails, save errors in validationErrors instead } );