ARKI_SCHEMA_E005
thrownThis error is thrown. It stops your code unless you catch it. Fix the cause below; catching it only hides the problem.
What happened
`is`, `assert` or `ensure` got a schema that validates asynchronously. They are synchronous and cannot wait for it.
Fix
Use `parseAsync`, or a schema that validates synchronously.
Check the fix
bun run test -- src/assert.test.tsRun it after the fix. It passes when the fix worked.
Where it comes from
- Package
- @arki/schema
- Version
- 0.2.0 · next release candidate
- Source
- src/errors.ts:26