サンプル
Control Fastify 5.11.0 validation inside a route while preserving default short-circuit validation and schema-driven serialization
sha256:0c663a90da3b70ce090983098a8c5074c06f37e858c03fb00b9d41a8aef2c572
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Control Fastify 5.11.0 validation inside a route while preserving default short-circuit validation and schema-driven serialization HOW
- パッケージ
- fastify 5.11.0
- 環境
- node
- 作成日
- 2026-08-17T01:51:21Z
コントラクト
- assert Fastify 5.11.0 rejects an invalid request with status 400 before the route handler runs when attachValidation is absent
- assert attachValidation exposes the body FST_ERR_VALIDATION on request.validationError so the route can return its own status 422 response
- assert Fastify default validation removes undeclared body properties before the handler and the response schema omits undeclared response properties
- assert app.inject exercises all request paths in process without opening a listening socket
ファイル
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9