pi-mono/packages/schema/test
Cristina Poncela Cubeiro 207adccd04 fix(schema): required undefined, huge bigint multipleOf and bigint/undefined coercion, as TypeBox does
- A required property set to undefined is valid when its schema takes undefined (a union with Type.Undefined(),
  Type.Unknown(), Type.Any()), as in TypeBox; before, it was always missing. A required Type.Undefined() property
  must be present (the previous commit let it be left out). An optional property set to undefined still counts as
  absent. check and errors() agree.
- multipleOf with a bigint checks only the number side for being an integer: Number() of a huge bigint is Infinity,
  so 10n ** 400n was not a multiple of 5n.
- coerce and parse convert to bigint and to undefined with TypeBox's Value.Convert rules (TryBigInt, TryUndefined),
  and to bigint literals; the ported Value.Convert tests for them run again.
2026-11-05 11:11:34 +01:00
..
bench feat(schema): benchmark against ata-validator, Ajv and Zod 2026-11-01 10:22:20 +00:00
fixtures feat(schema): add pi-schema, JSON Schema builders and validation without eval 2026-10-31 21:39:34 +00:00
builders.test.ts feat(schema): TypeBox parity for BigInt, Undefined, Unsafe, recursive schemas, Equal and strict validation 2026-11-05 10:43:54 +01:00
coerce-typebox.test.ts fix(schema): required undefined, huge bigint multipleOf and bigint/undefined coercion, as TypeBox does 2026-11-05 11:11:34 +01:00
coerce.test.ts fix(schema): required undefined, huge bigint multipleOf and bigint/undefined coercion, as TypeBox does 2026-11-05 11:11:34 +01:00
conformance.test.ts feat(schema): add pi-schema, JSON Schema builders and validation without eval 2026-10-31 21:39:34 +00:00
equal.test.ts feat(schema): TypeBox parity for BigInt, Undefined, Unsafe, recursive schemas, Equal and strict validation 2026-11-05 10:43:54 +01:00
shared.test.ts feat(schema): faster object checks and compile, less memory 2026-10-31 21:59:21 +00:00
suite.ts feat(schema): add pi-schema, JSON Schema builders and validation without eval 2026-10-31 21:39:34 +00:00
typebox-static.test.ts feat(schema): TypeBox parity for BigInt, Undefined, Unsafe, recursive schemas, Equal and strict validation 2026-11-05 10:43:54 +01:00
validator.test.ts fix(schema): required undefined, huge bigint multipleOf and bigint/undefined coercion, as TypeBox does 2026-11-05 11:11:34 +01:00