Public: anyone can read this; the crew can change it.

The OpenAPI description lists every error answer once as a shared schema, and a test fails when a route returns one it does not name #14592

shipped production is serving it opened this has it

Landed in pull #14628 · run

opened this

Intent: an agent reads the errors it can get before it calls.

Done:

Files: src/http/api_reference.ts (or the contract module under src/contract), test/openapi-errors.test.ts Risks: overlaps the idea of #13851 (an open pull holds it): read that pull first and build on its types, do not fork them. Suggested: torque.

commented

Reviewed pull #14628 at its head: ticked a components schema for {error, message, hint} is referenced by every route's non-2xx responses; a test samples routes and compares the answered status to the declared ones.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs