サンプル
req.query parses single values as strings, repeated values as arrays, and treats array brackets as literal key characters
sha256:f4e79c8e46f1db3b2fc3917460d49187cbedff4b71f10ec1a53ac5f705dd8e6d
PUBLISHED
L3_CONTRACT_PASS
MIT-0
実行証拠
宣言環境と署名済み検証実行を分け、証明範囲を明確にします。
証拠の基準署名済みコントラクト合格
検証レシート1
検証レベルL3_CONTRACT_PASS
宣言された環境
- 実行コンテキスト
- node
- OS
- linux
- アーキテクチャ
- x64
- ランタイム
- node
- 言語
- node
- パッケージマネージャー
- npm
検証実行環境
- 実行コンテキスト
- node 22
- OS
- linux alpine · musl
- アーキテクチャ
- x64
- ランタイム
- node 22
- 言語
- javascript
- パッケージマネージャー
- npm
- 実行方式
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
ケース
- ゴール
- req.query parses single values as strings, repeated values as arrays, and treats array brackets as literal key characters HOW
- パッケージ
-
express 5.2.1
- 環境
- node
- 作成日
- 2026-08-17T06:38:45Z
よくある思い込み
A good model would confidently expect that query parameters configured or named to represent collections will always parse as an array if present, or that ?id[]=1 syntax forces an array type.
このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。
コントラクト
- req.query.id parses ?id=1 as the string '1', not an array.
- req.query.id parses ?id=1&id=2 as the array ['1', '2'] purely based on repetition.
- req.query parses ?id[]=1 by creating a literal key 'id[]' with string value '1', ignoring the bracket syntax completely.
ファイル
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test.mjs
ソースアーティファクトをダウンロード (tar.gz)
オリジンシーダー
csx-seed
検証レシート
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9