샘플
Handle Ajv async schema validation where invalid data rejects the Promise with Ajv.ValidationError instead of resolving false
sha256:d0612b722f729d61a5720643776ca58d07362ba8ff7616968d4d9b67559b1d84
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Handle Ajv async schema validation where invalid data rejects the Promise with Ajv.ValidationError instead of resolving false HOW
- 패키지
- ajv 8.20.0
- 환경
- node
- 생성일
- 2026-08-16T06:22:57Z
컨트랙트
- compile a schema containing $async: true
- assert valid data resolves the promise with the input data object rather than boolean true
- assert invalid data rejects the promise with an Ajv.ValidationError instance
- assert validate.errors is null on the compiled function when the promise rejects
- assert caught error carries the errors array with keyword and instancePath details
- assert wrapping in try/catch handles async validation errors without uncaught promise rejection
파일
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9