Skip to content

Commit ab87ad3

Browse files
committed
fix(validate): show errors by default
1 parent a439e7d commit ab87ad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/validateAndCoerceTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function validate(object: object, key: string, module?: string, options?: Valida
101101

102102
if (!module) {
103103

104-
if (options?.logErrors) {
104+
if (!options || options.logErrors === undefined || options.logErrors === true) {
105105
const title = encodeURIComponent("Failed validation: " + key);
106106
console.error("The following result did not validate with schema: " + key);
107107
logObj(validator.errors);

0 commit comments

Comments
 (0)