@sinclair/typebox 0.29.5 → 0.29.6

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.
Files changed (2) hide show
  1. package/errors/errors.js +2 -2
  2. package/package.json +1 -1
package/errors/errors.js CHANGED
@@ -350,7 +350,7 @@ var ValueErrors;
350
350
  yield { type: ValueErrorType.ObjectMinProperties, schema, path, value, message: `Expected object to have at least ${schema.minProperties} properties` };
351
351
  }
352
352
  if (IsDefined(schema.maxProperties) && !(globalThis.Object.getOwnPropertyNames(value).length <= schema.maxProperties)) {
353
- yield { type: ValueErrorType.ObjectMaxProperties, schema, path, value, message: `Expected object to have less than ${schema.maxProperties} properties` };
353
+ yield { type: ValueErrorType.ObjectMaxProperties, schema, path, value, message: `Expected object to have no more than ${schema.maxProperties} properties` };
354
354
  }
355
355
  const requiredKeys = globalThis.Array.isArray(schema.required) ? schema.required : [];
356
356
  const knownKeys = globalThis.Object.getOwnPropertyNames(schema.properties);
@@ -402,7 +402,7 @@ var ValueErrors;
402
402
  yield { type: ValueErrorType.ObjectMinProperties, schema, path, value, message: `Expected object to have at least ${schema.minProperties} properties` };
403
403
  }
404
404
  if (IsDefined(schema.maxProperties) && !(globalThis.Object.getOwnPropertyNames(value).length <= schema.maxProperties)) {
405
- yield { type: ValueErrorType.ObjectMaxProperties, schema, path, value, message: `Expected object to have less than ${schema.minProperties} properties` };
405
+ yield { type: ValueErrorType.ObjectMaxProperties, schema, path, value, message: `Expected object to have no more than ${schema.maxProperties} properties` };
406
406
  }
407
407
  const [patternKey, patternSchema] = globalThis.Object.entries(schema.patternProperties)[0];
408
408
  const regex = new RegExp(patternKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinclair/typebox",
3
- "version": "0.29.5",
3
+ "version": "0.29.6",
4
4
  "description": "JSONSchema Type Builder with Static Type Resolution for TypeScript",
5
5
  "keywords": [
6
6
  "typescript",