Repository navigation
Fix GET /pools list endpoint incorrectly documenting 404 in OpenAPI spec - #67570
Merged
vincbeck merged 3 commits intoMay 27, 2026
Merged
Conversation
ColtenOuO
requested review from
bugraoz93,
choo121600,
ephraimbuddy,
jason810496,
pierrejeambrun,
rawwar and
shubhamraj-git
as code owners
May 26, 2026 17:53
vincbeck
approved these changes
May 26, 2026
Contributor
Author
|
Static checks failed on "Compile / format / lint UI" — this touches only React/TypeScript UI files that this PR doesn't modify. |
Contributor
Still, some front-end artifacts are generated from openapi specs, please run |
… /pools OpenAPI spec
ColtenOuO
requested review from
bbovenzi,
guan404ming,
ryanahamilton and
vatsrahul1001
as code owners
May 27, 2026 07:30
Contributor
Author
Thanks! I use |
This was referenced Aug 3, 2026
1 task done
pierrejeambrun
pushed a commit
that referenced
this pull request
Sep 30, 2026
…71647) * Keep OpenAPI error responses in sync with the statuses routes raise `create_openapi_http_exception_doc(...)` feeds the `responses=` block that the generated spec — and every client built from it — uses to model error responses, but nothing ties that list to the statuses a handler actually raises. The two drift apart silently, and the same drift has had to be found and patched by hand four times (#67570, #67571, #70992, #71011). A static check keeps them together, so the next divergence fails in CI instead of shipping a spec that omits a response the API really returns. * Recognize Cadwyn routers in the OpenAPI error-response check ROUTER_CLASSES omitted VersionedAPIRouter, so router-level `responses=` was invisible on every Cadwyn-based execution API route, and three statuses those routers already declare were reported as undeclared. prek executes hook scripts directly, so the script needs its executable bit to run at all.
pierrejeambrun
added a commit
that referenced
this pull request
Oct 1, 2026
…71647) (#73968) * Keep OpenAPI error responses in sync with the statuses routes raise `create_openapi_http_exception_doc(...)` feeds the `responses=` block that the generated spec — and every client built from it — uses to model error responses, but nothing ties that list to the statuses a handler actually raises. The two drift apart silently, and the same drift has had to be found and patched by hand four times (#67570, #67571, #70992, #71011). A static check keeps them together, so the next divergence fails in CI instead of shipping a spec that omits a response the API really returns. * Recognize Cadwyn routers in the OpenAPI error-response check ROUTER_CLASSES omitted VersionedAPIRouter, so router-level `responses=` was invisible on every Cadwyn-based execution API route, and three statuses those routers already declare were reported as undeclared. prek executes hook scripts directly, so the script needs its executable bit to run at all. (cherry picked from commit 8d4ab8a) Co-authored-by: Pushkal Gupta <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
GET /poolslist endpoint hadHTTP_404_NOT_FOUNDin its OpenAPIresponsesdecorator, but the endpoint can never return 404 — it always returns a collection (possibly empty).This makes the OpenAPI spec accurately reflect the endpoint's actual behaviour and avoids misleading auto-generated SDK clients into handling a 404 that will never occur.