Generated API documentation is ready when readers can choose the right server, supply the required inputs, understand authentication and interpret the relevant response without reconstructing hidden source rules. A successful generation job establishes an output artifact, not that those reader decisions are correct.
Review three layers separately: approved API description, generated public reference and observed service behavior. A problem can originate in any layer. Editing a rendered paragraph to conceal a source mismatch makes the next generated release less trustworthy.
This walkthrough uses a complete fictional one-operation description and a bounded local check. It sends no requests, includes no usable credential and does not report a bug in an actual renderer or API. Its purpose is a release packet a documentation owner can apply to an authorized product workflow.
Freeze the description and the generation context
Record the exact API description revision, declared OpenAPI version, generator and theme versions, relevant configuration, build command and output revision. Name which operation and audience the release covers. Do not assume support for a specification feature because a tool accepts the version string.
The OpenAPI 3.2 specification defines operation-specific server and security fields that can override broader definitions. It also describes example representations and notes limits around automatic validation of serialized examples. A reviewer needs to check the features actually used, not just whether the document is valid JSON.
This fixture uses the 3.2 Example Object’s dataValue field. Verify that the chosen generator supports and renders it. A generator targeting another version may need a different approved description; do not silently drop the example or relabel its version without a migration decision.
The field-presence contract resolves operation semantics such as omission or clearing. This review concerns whether an approved description reaches the reader faithfully through generation.
Use one complete source fixture
Save this JSON as reference-fixture.json for the local exercise. The .test hosts are illustrative, not service destinations. The operation explicitly selects its sandbox server rather than the document-level server.
{
"openapi": "3.2.0",
"info": {
"title": "Fictional report reference",
"version": "1.0.0"
},
"servers": [
{
"url": "https://api.example.test"
}
],
"paths": {
"/reports/{reportId}": {
"get": {
"operationId": "getReport",
"summary": "Read one report",
"servers": [
{
"url": "https://sandbox.example.test"
}
],
"parameters": [
{
"name": "reportId",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"security": [
{
"testBearer": []
}
],
"responses": {
"200": {
"description": "A ready report",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"id",
"state"
],
"properties": {
"id": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"ready"
]
}
}
},
"examples": {
"ready": {
"dataValue": {
"id": "R-1",
"state": "ready"
}
}
}
}
}
},
"401": {
"description": "Authentication required"
},
"404": {
"description": "No accessible report"
}
}
}
}
},
"components": {
"securitySchemes": {
"testBearer": {
"type": "http",
"scheme": "bearer"
}
}
}
}The response example is a source example, not a captured service response. The security scheme names the intended mechanism without supplying a token. The two error responses define descriptions only; this fixture does not invent their response bodies.
Compare the reader’s answers with the source
Generate the fixture only through the organization’s approved tooling. Then inspect the actual public or authorized preview output, including any downloadable request example. The filled matrix gives expected answers and illustrative defects to detect; it does not claim those defects were observed.
| Reader decision | Expected from fixture | Illustrative release-blocking mismatch |
|---|---|---|
| Where does this operation send requests? | https://sandbox.example.test | Generated example uses document-level api.example.test instead |
| Which value belongs in the path? | Required string reportId | Reference hides the required parameter or treats it as a query value |
| How is this operation authenticated? | Declared HTTP bearer scheme | Rendered operation appears anonymous |
| What does the 200 example contain? | id R-1 and state ready | Example is missing or displays pending despite declared enum |
| Which error cases are documented? | 401 and 404 descriptions | Template suppresses one case or invents an unsupported body |
| Can the reader reach this operation directly? | Working stable operation link under the selected renderer | Navigation points to an absent or different operation |
Keep source and rendered evidence beside each finding. A wrong example in the source needs a source correction. A correct source rendered incorrectly needs a tooling or configuration correction. An undocumented service result needs investigation with the actual API owner.
Execute a limited source check without inflating its scope
This Python reads the exact teaching fixture, checks its chosen server, security declaration and one enum example, then tests an intentionally invalid alternative. Run it from the directory containing reference-fixture.json. It requires no third-party library or network access.
import copy
import json
spec = json.loads(open("reference-fixture.json", encoding="utf-8").read())
operation = spec["paths"]["/reports/{reportId}"]["get"]
media = operation["responses"]["200"]["content"]["application/json"]
example = media["examples"]["ready"]["dataValue"]
allowed = media["schema"]["properties"]["state"]["enum"]
assert operation["servers"][0]["url"] == "https://sandbox.example.test"
assert operation["security"] == [{"testBearer": []}]
assert example["state"] in allowed
bad_example = copy.deepcopy(example)
bad_example["state"] = "pending"
assert bad_example["state"] not in allowed
print("Named source-fixture checks passed; renderer and service not tested.")The named checks pass for the fixture. Changing the example state to pending violates the declared ready-only enum. That result is a local source consistency check, not complete OpenAPI validation, a rendering test or proof that a server returns ready.
Use suitable approved schema and specification validation for the real description, plus human review of the generated page. Keep their results separate. A tool can validate syntax while a theme still hides an important server override.
Close the release at the layer actually established
Review method, path, parameters, authentication, server selection, media type, response examples and direct operation links for representative supported tasks. Inspect the downloadable collection too if the page distributes one; it may use a different generation path.
When authorized product tests are needed, use the approved test environment and preserve actual request and response evidence without secrets. The credential review applies to those captures. Do not turn a documentation check into an unapproved production call.
The defect handoff can preserve the smallest source-plus-output mismatch. Include the description revision, tooling revision, expected reader answer and exact rendered discrepancy so the next owner can reproduce it.
Approve when source checks, rendered reader decisions and any required service evidence agree within the named scope. If only the source fixture passed, report exactly that. Generated documentation becomes dependable when its release evidence follows the reader’s task rather than ending at the build log.
