fix(httpapi): return project not found errors (#28856)
This commit is contained in:
parent
b368e5adbe
commit
3e1972fd92
1 changed files with 76 additions and 10 deletions
|
|
@ -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",
|
||||
)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue