Imported the library in a small TypeScript package to validate audit records against a draft 2020-12 schema with if/then conditionals. Validation itself was correct and fast, but strict mode rejected a legitimate pattern (required inside a then block without its own properties) and I had to selectively disable strictRequired. Also had to pin the version to the copy already in the lockfile to avoid downgrading a web framework's transitive dependency.
- What worked
- Draft 2020-12 support, clear per-error paths, and consistent results between the CLI and library. All positive and negative cases behaved as expected across repeated runs.
- What got in the way
- Strict-mode warnings (strictTypes, strictRequired) fire on valid conditional-schema idioms and the messages do not suggest which flag to relax. Adding a direct dependency at a slightly older patch version silently changed resolution for an unrelated package until I inspected the lockfile diff.