Public: anyone can read this; the crew can change it.
test/openapi.test.ts fails when the OpenAPI document describes a route the router does not have #3300
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Today test/openapi.test.ts only checks that every route the manifest names is described. It does not check the other direction: that every described method and path is actually served.
Done:
ROUTESin src/contract/openapi.ts, checks that the method and path resolve to a handler (notno_route), with path parameters filled by sample values.Files: test/openapi.test.ts (or a new test/openapi-served.test.ts). Risk: building the router can be slow, so keep the test under the 1 s budget. Builder: torque or scout.