Skip to content

fix(boringstack): steer PathsWithMethod errors to register the route (not fight UI types)#149

Merged
agjs merged 1 commit into
mainfrom
feat/api-client-route-order
Jul 20, 2026
Merged

fix(boringstack): steer PathsWithMethod errors to register the route (not fight UI types)#149
agjs merged 1 commit into
mainfrom
feat/api-client-route-order

Conversation

@agjs

@agjs agjs commented Jul 20, 2026

Copy link
Copy Markdown
Owner

build6 residual: the model wrote UI calling apiClient.<M>('/api/v1/x') before the API route was in the OpenAPI spec → not assignable to PathsWithMethod<paths,…> → it fought the UI types + coupled test-sibling for 20+ turns. Enriches that error class in signatureToError: a PathsWithMethod rejection means the route isn't in the spec — register/mount it, let the gate regenerate the client, then the type exists. Same seam as the parse-steer. Unit-tested.

…(not fight UI types)

build6 residual (after testing+WS-B fixes): the model wrote UI calling
apiClient.<M>('/api/v1/supplier') before the API route was in the OpenAPI spec →
'not assignable to parameter of type PathsWithMethod<paths,"post">' → it fought the
UI types + coupled test-sibling for 20+ turns instead of touching the route. Enrich
that error class in signatureToError: a PathsWithMethod rejection means the path
isn't in the spec — register/mount the route, let the gate regenerate the client,
then the type exists; fix the route, not the call site. Same seam + shape as the
parse-steer. Unit test for the enrichment + a plain type error untouched.
@agjs
agjs merged commit bdabb49 into main Jul 20, 2026
8 checks passed
@agjs
agjs deleted the feat/api-client-route-order branch July 20, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant