Skip to content

Conversation

bhaleraosaurabh
Copy link
Contributor

@bhaleraosaurabh bhaleraosaurabh commented Jan 30, 2025

When using a prefix, the plugin tries to fetch the scalar config from an incorrect path as mentioned in issues #161, #183, #151 . This can be seen in the screenshots below.

This PR enables successful fetching of the Scalar config from the correct URL whether a prefix is used or not and even if the prefix is nested.

closes #161
closes #183
closes #151
closes #157

elysia with prefix
Incorrect JSON path

No prefix
No prefix on elysia

Elysia swagger with corrected path
nested prefix

@antoniel
Copy link

antoniel commented Feb 8, 2025

+1

@dodas
Copy link
Contributor

dodas commented Feb 21, 2025

bump. this fixes my issue when Scalar UI tries to load the openapi schema from /swagger/json, even though it should be requesting /api/swagger/json.
cc @SaltyAom

Co-authored-by: Jozef Mikuláš <[email protected]>
@bhaleraosaurabh
Copy link
Contributor Author

Could we please have it merged @SaltyAom ?

@ortonomy
Copy link

This got merged, but it's still not working in Elysia 1.3.1 and this package 1.3.0

@dodas
Copy link
Contributor

dodas commented May 28, 2025

I believe this is a regression in either [email protected] or @elysiajs/[email protected].

@madkarmaa
Copy link

madkarmaa commented Jun 26, 2025

Still not working as it should, have to resort to this workaround.

  • Bun version: 1.2.17
  • ElysiaJS version: 1.3.5
  • @elysiajs/swagger version: 1.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

6 participants