Sample
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
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- node
- Operating system
- linux
- Architecture
- x64
- Runtime
- node
- Language
- node
- Package manager
- npm
Verification-run environments
- Execution context
- node 22
- Operating system
- linux alpine · musl
- Architecture
- x64
- Runtime
- node 22
- Language
- javascript
- Package manager
- npm
- Execution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Case
- Goal
- req.query parses single values as strings, repeated values as arrays, and treats array brackets as literal key characters HOW
- Packages
-
express 5.2.1
- Environment
- node
- Created
- 2026-08-17T06:38:45Z
Commonly assumed
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.
The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.
Contract
- 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.
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test.mjs
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9