1. The problem
In one sentence
The spec says a query parameter or a request header is required, and the server answers normally when it is missing.
A story
The spec says GET /lenient/missing-query needs a query parameter q. A client calls it without q. The server answers 200 with {"q":""}, as if an empty search had been asked for. The client developer never learns that the parameter was missing, and the app shows “no results” for every search.
Why it hurts
A required parameter that is silently replaced by an empty value turns a client bug into a plausible-looking wrong answer. Nothing fails, so nothing is fixed.
- For developers: a missing parameter should be a loud
400, not a quiet default. A default hides the mistake in the caller. - For managers: “no results” or an empty report looks like a normal business outcome. The problem is found only when someone notices that the data is wrong.
- For DevOps: a required header (a tenant, a version, an API key) that is silently defaulted can route requests to the wrong place. Test the missing case.
Example
The spec fragment:
parameters:
- name: q
in: query
required: true
schema: { type: string }
The two servers in the sandbox, asked without q:
lenient/missing-query GET -> 200 OK {"q":""}
strict/missing-query GET -> 400 Bad Request {"code":"invalid_request","message":"q is required"}
How to detect it without clrsig
curl -i URLwithout the parameter. A correct server answers400.- In a review, search for default values given to required parameters.
How to fix it
There are two usual causes:
- The code is wrong (more likely). Reject a request that lacks a required parameter, with a
400that names it. - The spec is wrong. The parameter is really optional, with a sensible default. Mark it
required: falseand document the default.
To tell which: ask whether the empty default is a valid business answer. If not, require the parameter.
Related problems
AC-028 A request without a required field is accepted, AC-031 A request without credentials is accepted, AC-003 A required response header is missing.
Words used on this page are explained once in the glossary.
2. How clrsig helps
Check
CS-PROBE-003 Missing required query parameter or header accepted. State: caught. Severity today: failure (exit code 1). With --negative, clrsig sends a request without a required query parameter or header and expects 400, 422, or 428 for a missing precondition.
Command
This operation is a GET, so nothing is written:
clrsig conform specs/conform-fail.yaml \
-b http://localhost:8080/conform-fail \
--env clrsig/environments/conform-fail.yaml \
--negative --paths /lenient/missing-query --explain
Exit code: 0 clean, 1 a finding, 2 the spec or the setup is broken. Here it is 1.
What you see
Output from clrsig v0.21.0, recorded on 2026-11-30. The lines for the 75 operations that --paths skipped are left out by grep -v '^ SKIP'; no line is edited.
conform-fail API 1.0.0
Base URL: http://localhost:8080/conform-fail
Limited by --paths /lenient/missing-query
PASS GET /lenient/missing-query 200 13ms
PASSED 76 operations · 1 passed · 0 failed · 75 skipped 15ms
Negative conformance probes — conform-fail API 1.0.0
FAIL GET /lenient/missing-query — missing required query param 'q' (expect 400)
server accepted invalid request with 200
FAILED 1 probe · 0 passed · 1 failed · 0 skipped · 0 errors 2ms
1 probe: the server accepted a request it should have rejected — fix server validation
How to read it: the valid request passes, and the probe without q fails because the server answered 200. For the strict control (--paths /strict/missing-query) the probe passes with 400.
Where to look
- Desktop app: the Check Conformance page has a “Get CLI command” button that shows the command for a run, so you can add
--negativeto it. - Reports:
--format jsonlists the probes underprobes;--format junithas one test case per probe. - GitHub Action: the
negativeinput turns it on.
How clrsig helps you fix it
It names the missing parameter and the status the server gave. It does not say whether a default is intended.
Limits
- A required header is probed the same way as a query parameter. A wrong header or path-parameter type is not probed.
- Another
4xxpasses with a warning (CS-PROBE-007), and a429leaves the probe not checked (CS-PROBE-008);--fail-on warningfails the run on both. A pass is still no proof that the request was refused for this fault, so read the status printed beside it.
More ways
Nothing yet.
3. Video brief for Google NotebookLM
VIDEO BRIEF — AC-030 · A missing required parameter is accepted
Length: 5 to 7 minutes. Language: English. Audience: developers, with a line each for managers and DevOps.
One idea: a required parameter that the server silently replaces with an empty value turns a client bug into a plausible wrong answer.
Open with this story: The spec says a search needs a query parameter called q. A client calls it without q. The server answers 200 with an empty q, as if an empty search had been asked for. The client developer never learns the parameter was missing, and the app shows no results for every search.
Say these facts, in this order:
1. The spec marks q as required. The lenient server answers 200. The strict server answers 400 and says q is required.
2. A missing parameter should be a loud 400, not a quiet default.
3. clrsig conform with negative sends a request without the required parameter and expects 400, 422, or 428 for a missing precondition.
4. The probe fails because the server answered 200.
5. The same applies to a required header; a silently defaulted header such as a tenant can route requests to the wrong place.
6. Two usual causes: the code is wrong (reject the request), or the spec is wrong because the parameter is really optional with a default.
7. For managers: an empty result looks like a normal business outcome; the problem is found late.
Show on screen: the parameter in the spec, the two server answers, the command (clrsig conform specs/conform-fail.yaml -b http://localhost:8080/conform-fail --env clrsig/environments/conform-fail.yaml --negative --paths /lenient/missing-query --explain), and the output block, copied exactly from the card.
Name the check: CS-PROBE-003, Missing required query parameter or header accepted. Say the clrsig version: v0.21.0.
Explain these words once: query parameter (a value after the question mark in a URL); required (the spec says it must always be present); negative probe (a request that is wrong on purpose, which the server must refuse); exit code (0 clean, 1 a finding, 2 setup or spec broken).
Say what clrsig does not see here: wrong header or path-parameter types are not probed; a probe refused with another 4xx passes with a warning, a 429 is reported as not checked, and even an expected status is no proof the request was refused for that fault.
Safety line (if a write is shown): not needed, this operation is a GET.
Finish with three recap questions:
1. What should a server answer when a required parameter is missing? (A 4xx, normally 400.)
2. Why is a silent default risky? (It hides the mistake in the caller.)
3. Is the same rule true for headers? (Yes.)
Tease the next video: AC-031 · A request without credentials is accepted.
Do not: say "contract testing" alone; say clrsig "catches everything"; invent flags, IDs or numbers; read tables aloud; use any fact that is not in the card.