schema.async_required
failureThis is a failure. A function returns it as a value, so your code keeps running and you decide what to do.
What happened
A synchronous operation received an asynchronous validator result.
Fix
Use parseAsync() and await the result.
Check the fix
bun run test -- src/schema.test.tsRun it after the fix. It passes when the fix worked.
Where it comes from
- Package
- @arki/failure
- Version
- 0.2.0 · next release candidate
- Source
- src/foundations.ts:67