mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
- 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. |
||
|---|---|---|
| .. | ||
| bench | ||
| fixtures | ||
| builders.test.ts | ||
| coerce-typebox.test.ts | ||
| coerce.test.ts | ||
| conformance.test.ts | ||
| equal.test.ts | ||
| shared.test.ts | ||
| suite.ts | ||
| typebox-static.test.ts | ||
| validator.test.ts | ||