You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG-06: 19 path parameters have no description, and the startup check does not check parameters #133
In-ProgressWork started and not complete; the comment gives the pull request or the jobbugSomething isn't workingclass:INVInnovation: a new feature, design, idea or methodsev:lowA small defect, a defect no code path reaches yet, or a cleanupstatus:openNo fix yet
What is wrong: 19 of the 53 parameters in the spec have no description. All 19 are path parameters: cluster_id, ns, request_id and username. check_documented does not check parameters, so the startup check passes.
Where:cmapi/src/cmapi/core/docs.py:169, check_documented. It checks the summary, the description, the response model and the model fields, but not the parameters. Line 144 is a condition with only pass in its body, which is dead code. The module docstring says that each model field needs an example, but the code requires one only for a required scalar field.
How to prove it: In cmapi/, with the service test database on port 55432, write a test that uses the world fixture and reads GET /openapi.json. The assertion below fails on 0c79108 and must pass after the fix.
Measured or inferred: Measured on 2026-11-13 with the world fixture of the service suite, at 0c79108 on branch ldap-rbac-names. No cluster. The spec has OpenAPI 3.1.0 and 31 operations.
Measured: 19 parameters with no description, for example GET /api/v1/requests/{request_id}, parameter request_id.
Severity: Low.
What must hold after the fix: Each path, query and header parameter has a description and an example. check_documented refuses to start when one does not. The dead code at line 144 is gone. The docstring and the code say the same thing about examples.
Research: FastAPI's Path(description=..., examples=...). As a standard for the text, read local-development/gsd/api.py in ephico2real2/group-sync-dashboard at d6827c5314d7. Its Query(description=...) texts say what a limit truncates and what total counts.
Class: INV. The fix adds a check to the startup gate.
In-Progress: draft pull request #135 closes this issue. CI run 43400342375 on 3ea7aa1: api-contract, service, portal-ui, portal-mockup and reference-code passed; manifests was still running when this was written.
In-ProgressWork started and not complete; the comment gives the pull request or the jobbugSomething isn't workingclass:INVInnovation: a new feature, design, idea or methodsev:lowA small defect, a defect no code path reaches yet, or a cleanupstatus:openNo fix yet
Activity
ephico2real2 commentedon Nov 13, 2026
In-Progress: draft pull request #135 closes this issue. CI run 43400342375 on 3ea7aa1: api-contract, service, portal-ui, portal-mockup and reference-code passed; manifests was still running when this was written.