fix(httpapi): return project not found errors (#28856)

This commit is contained in:
Shoubhit Dash 2026-05-22 22:06:20 +05:30 • committed by GitHub
commit 3e1972fd92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -208,4 +208,12 @@ describe("PublicApi OpenAPI v2 errors", () => {
"PtyForbiddenError",
)
})
test("documents project not-found errors", () => {
const spec = OpenApi.fromApi(PublicApi) as OpenApiSpec
expect(componentName(responseRef(spec.paths["/project/{projectID}"]?.patch?.responses?.["404"]) ?? "")).toBe(
"ProjectNotFoundError",
)
})
})