Open jonasfroeller opened 1 month ago
elysia@1.1.7
is the last version that works for me.
Experiencing the same issue.
It seems it only occurs when swagger
plugin is applied in non-root Elysia instance (in your case the v1
router).
It only works when used on the root Elysia instance.
Can also confirm downgrading to 1.1.7 fixes the issue.
Found out that if you await
the return value of elysia-swagger, then it works on child instances:
const api = new Elysia().use(await swagger()).get("/hello");
const app = new Elysia().use(api);
It worked using
elysia@1.0.15
and@elysiajs/swagger@^1.0.2
.I tried removing my swagger configuration and checked out the default
/swagger
path. Same issue.I upgraded bun, deleted
node_modules
and reinstalled them. Same issue.I also tried removing every other path and plugin and just adding swagger. Same issue.
I am so confused. Did something change in elysiajs, that breaks my code now?
My dependencies:
Old dependencies:
My code:
v1: