Skip to content

OpenAPI declares request/response headers and the documented error statuses #1333

Done

Description

@athvin

Follow-up named by #523 (E13). openapi.public.json declares no header parameters and lists only 2XX and default responses for every operation. The retry contract (Idempotency-Key on ingest and imports, Idempotent-Replayed on a replay) and the 401/402/403/404/409/413/422/503 statuses exist only in rustdoc and on /docs, so a client generated from the contract cannot see them.

Done when each operation declares the error statuses its handler can return, each with the {detail} body, and the request and response headers it reads or sets. Both must be derived from the handler source (er-api-spec), not hand-listed, so the contract cannot drift.

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

    mvp

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions