refactor(server): serve raw filesystem content (#31911)
This commit is contained in:
@@ -97,7 +97,7 @@ describe("PublicApi OpenAPI v2 errors", () => {
|
||||
test("documents references separately from filesystem routes", () => {
|
||||
const spec = OpenApi.fromApi(PublicApi) as OpenApiSpec
|
||||
|
||||
for (const path of ["/api/fs/read", "/api/fs/list"]) {
|
||||
for (const path of ["/api/fs/read/*", "/api/fs/list"]) {
|
||||
expect(spec.paths[path]?.get?.parameters, path).not.toContainEqual(expect.objectContaining({ name: "reference" }))
|
||||
}
|
||||
expect(spec.paths["/api/reference"]?.get).toBeDefined()
|
||||
|
||||
Reference in New Issue
Block a user