@sinclair/typebox 0.28.19 → 0.28.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/errors/errors.d.ts +1 -1
- package/errors/errors.js +3 -3
- package/package.json +1 -1
package/errors/errors.d.ts
CHANGED
package/errors/errors.js
CHANGED
|
@@ -69,7 +69,7 @@ var ValueErrorType;
|
|
|
69
69
|
ValueErrorType[ValueErrorType["NumberMultipleOf"] = 30] = "NumberMultipleOf";
|
|
70
70
|
ValueErrorType[ValueErrorType["NumberExclusiveMinimum"] = 31] = "NumberExclusiveMinimum";
|
|
71
71
|
ValueErrorType[ValueErrorType["NumberExclusiveMaximum"] = 32] = "NumberExclusiveMaximum";
|
|
72
|
-
ValueErrorType[ValueErrorType["
|
|
72
|
+
ValueErrorType[ValueErrorType["NumberMinimum"] = 33] = "NumberMinimum";
|
|
73
73
|
ValueErrorType[ValueErrorType["NumberMaximum"] = 34] = "NumberMaximum";
|
|
74
74
|
ValueErrorType[ValueErrorType["Object"] = 35] = "Object";
|
|
75
75
|
ValueErrorType[ValueErrorType["ObjectMinProperties"] = 36] = "ObjectMinProperties";
|
|
@@ -337,10 +337,10 @@ var ValueErrors;
|
|
|
337
337
|
yield { type: ValueErrorType.NumberExclusiveMaximum, schema, path, value, message: `Expected number to be less than ${schema.exclusiveMaximum}` };
|
|
338
338
|
}
|
|
339
339
|
if (IsDefined(schema.minimum) && !(value >= schema.minimum)) {
|
|
340
|
-
yield { type: ValueErrorType.
|
|
340
|
+
yield { type: ValueErrorType.NumberMinimum, schema, path, value, message: `Expected number to be greater or equal to ${schema.minimum}` };
|
|
341
341
|
}
|
|
342
342
|
if (IsDefined(schema.maximum) && !(value <= schema.maximum)) {
|
|
343
|
-
yield { type: ValueErrorType.
|
|
343
|
+
yield { type: ValueErrorType.NumberMaximum, schema, path, value, message: `Expected number to be less or equal to ${schema.maximum}` };
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
function* Object(schema, references, path, value) {
|