Skip to content

BUG-06: 19 path parameters have no description, and the startup check does not check parameters #133

Closed

Description

@ephico2real2

Part of #13

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.

Activity

  1. added
    bug
    class:INV
    status:open
    sev:low
    Backlog
    on Nov 13, 2026
  2. added
    In-Progress
    and removed
    Backlog
    on Nov 13, 2026
  3. ephico2real2 commented on Nov 13, 2026

    @ephico2real2
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-Progressbugclass:INVsev:lowstatus:open

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions