1. The problem
In one sentence
The spec says an id in the path is an integer, and the server only accepts another kind of value, such as a UUID.
A story
The spec says GET /path-param/{id} takes an integer id, with the example 1. A client follows the spec and calls /path-param/1. The server answers 400 Bad Request with {"code":"invalid_id","message":"id must be a UUID"}. The server has always used UUIDs. The spec was written from an old design.
Why it hurts
This is a case where the server is correct by its own design and the spec is wrong. Anyone who builds from the spec gets an error on the first call, and cannot work out the right value without asking.
- For developers: generated clients use
intfor the id, and can never produce a UUID. The only fix is a spec change. - For managers: the documentation sends partners to a dead end. It is a cheap fix with an expensive effect on trust.
- For DevOps: a full
conformrun builds a valid value from the spec. When the server rejects it, the run fails on the first request of this operation.
Example
The spec fragment:
/path-param/{id}:
get:
parameters:
- name: id
in: path
required: true
schema: { type: integer, example: 1 }
responses:
"200":
description: A thing
The server, when asked directly:
GET /conform-fail/path-param/1 -> 400 {"code":"invalid_id","message":"id must be a UUID"}
GET /conform-fail/path-param/123e4567-e89b-12d3-a456-426614174000 -> 200 {"id":1}
How to detect it without clrsig
- Call the route with a value of the declared type, then with the value you think it wants, and compare the answers.
- Read the
400body: servers often say what they expected, as this one does.
How to fix it
There are two usual causes:
- The spec is wrong (the likely culprit here). The server has always taken UUIDs. Change the parameter to
type: string, format: uuidin the spec. This is a documentation fix, but clients generated from the old spec must be rebuilt. - The code is wrong. The server was changed to UUIDs by mistake, and clients rely on integers. Then restore integer ids, or support both. To tell which: ask which value real clients already send. Never silence the check.
Related problems
AC-020 A documented route does not exist, AC-024 The server needs something the spec never mentions, AC-021 The route exists, but not for that HTTP method. Words used on this page are explained once in the glossary.
2. How clrsig helps
Check
CS-RESP-001 Undeclared response status. State: caught. Severity today: failure (exit code 1). The 400 is the signal.
Command
--paths limits the run to this one GET, so nothing is written. clrsig builds id from the environment (the sandbox sets it to 1, a valid integer as the spec declares):
clrsig conform specs/conform-fail.yaml \
-b http://localhost:8080/conform-fail \
--env clrsig/environments/conform-fail.yaml \
--paths /path-param/ --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 /path-param/
FAIL GET /path-param/{id} 400 18ms
✗ GET /path-param/{id} answered 400, but the spec declares only 200
→ [CS-RESP-001] Status 400 is not declared for GET /path-param/{id}. Why: The spec lists the responses GET /path-param/{id} may return (200) and 400 is not one of them. The server refused the request; the reason is usually in the response body (shown under Got), and it may be a missing header, a value it does not accept or a rule the spec does not describe. The server's answer: {"code":"invalid_id","message":"id must be a UUID"}. Where: response status 400 (spec: GET /path-param/{id} → responses). Fix: Read the response body under Got to see why the request was refused. Fix what the server objects to (the request this check sends is built from the spec and the environment), or add 400 (or a default response) to GET /path-param/{id} → responses in the spec if the refusal is expected.
FAILED 76 operations · 0 passed · 1 failed · 75 skipped 20ms
How to read it: the finding says 400 is not declared, and prints the server’s answer: {"code":"invalid_id","message":"id must be a UUID"}. That is the clue: the spec says integer and the server wants a UUID. The finding does not say the cause is the parameter type, and adding 400 to the spec would hide the real problem: the spec is the one that is wrong.
Where to look
- Desktop app: Check Conformance shows the failure under “undeclared status”.
- Reports: with
--format json, the finding carries"checkId": "CS-RESP-001". - Scenario: a step can send a UUID instead;
curlshows the server then answers200, which proves the real shape.
How clrsig helps you fix it
It shows that a request built correctly from the spec was refused. Read the 400 body with curl to learn what the server wants.
Limits
- clrsig cannot tell that the parameter type is the cause. It sees an undeclared
400. - Changing the environment value to a UUID would make the check pass, but then the spec is still wrong. Fix the spec instead.
More ways
Nothing yet.
3. Video brief for Google NotebookLM
VIDEO BRIEF — AC-023 · A path parameter has a different type than the spec says
Length: 5 to 7 minutes. Language: English. Audience: developers, with a line each for managers and DevOps.
One idea: when a correct request built from the spec is refused, the spec is often the wrong one, even if the server is "strict".
Open with this story: The spec says an operation takes an integer id in the path, with the example 1. A client follows the spec and calls it with 1. The server answers 400 Bad Request and says the id must be a UUID. The server has always used UUIDs. The spec was written from an old design.
Say these facts, in this order:
1. The spec declares the id as an integer. The server accepts only a UUID and answers 400 to 1.
2. The server is correct by its own design; the spec is the likely culprit.
3. clrsig builds a valid value from the spec and calls the operation. The 400 is not declared, so it fails with CS-RESP-001.
4. The message does not say the parameter type is the cause. Read the 400 body, which says id must be a UUID.
5. The finding prints the server's answer, which says the id must be a UUID; adding 400 to the spec would hide the real problem.
6. Two usual causes: the spec is wrong (change the type to a string with the format uuid; rebuild clients), or the code changed to UUIDs by mistake.
7. For managers: the documentation sends partners to a dead end; a cheap fix with a big effect on trust.
8. For DevOps: a full conform run fails on the first request of this operation.
Show on screen: the spec fragment, the two server answers, the command (clrsig conform specs/conform-fail.yaml -b http://localhost:8080/conform-fail --env clrsig/environments/conform-fail.yaml --paths /path-param/ --explain), and the output block, copied exactly from the card.
Name the check: CS-RESP-001, Undeclared response status. Say the clrsig version: v0.21.0.
Explain these words once: path parameter (a value inside the URL path, such as the id in /things/7); UUID (a long unique identifier such as 123e4567-e89b-12d3-a456-426614174000); exit code (0 clean, 1 a finding, 2 setup or spec broken).
Say what clrsig does not see here: it cannot tell that the parameter type is the cause; changing the test value to a UUID would hide the wrong spec.
Safety line (if a write is shown): not needed, this command sends one GET.
Finish with three recap questions:
1. Which side is more likely wrong here? (The spec.)
2. Why is adding 400 to the spec a bad fix? (It hides that clients cannot call the operation.)
3. How should the spec describe the id? (A string with the format uuid.)
Tease the next video: AC-024 · The server needs something the spec never mentions.
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.