You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After navigating to the /docs route on the server, the generated OpenAPI schema should contain a valid specification for the uid parameter in the /:uid/tokens route.
The swagger UI providers (both scalar and swagger-ui) should also be able to allow the user to test the route with the specified example.
What do you see instead?
Currently, when a schema with examples field is passed to the params object of the request schema, the generated OpenAPI schema contains examples in the parameters object, i.e.:
Furthermore whilst swagger-ui provider shows "Could not render Parameters, see the console" error on that specific route (I still don't know which console it asks me to see, because it didn't print anything to stdout), scalar does not show any error and when hitting the "Test" button it shows a different route (I haven't tested what happens when there's no other route).
Additional information
Although I believe I have the latest version of Elysia as of this point (2024-12-16), I haven't figured out how to run the Elysia --revision command. With default installation (bun install elysia) my shell (ash) simply says:
/app # Elysia --revision
sh: Elysia: not found
I tried installing globally (bun install -g elysia), which also didn't help. Is there anything I'm missing? I'm running elysia under a docker container (alpine linux). Just in case, the versions in the lockfile are:
> bun ./bun.lockb | grep -A1 \"elysia
"elysia@>= 1.1.0", elysia@^1.1.26:
version "1.1.26"
Have you try removing the node_modules and bun.lockb and try again yet?
Yes, the issue still reproduces.
The text was updated successfully, but these errors were encountered:
What version of Elysia is running?
No response
What platform is your computer?
Linux 6.8.0-49-generic x86_64 unknown
What steps can reproduce the bug?
uid
URL parameter. To reproduce, the schema parameter should contain theexamples
field.param
with the above-defined type.What is the expected behavior?
After navigating to the
/docs
route on the server, the generated OpenAPI schema should contain a valid specification for theuid
parameter in the/:uid/tokens
route.The swagger UI providers (both
scalar
andswagger-ui
) should also be able to allow the user to test the route with the specified example.What do you see instead?
Currently, when a schema with
examples
field is passed to theparams
object of the request schema, the generated OpenAPI schema containsexamples
in theparameters
object, i.e.:Which, according to the OpenAPI specification should be valid, but apparently swagger-ui and scalar don't like this (?).
Furthermore whilst
swagger-ui
provider shows "Could not render Parameters, see the console" error on that specific route (I still don't know which console it asks me to see, because it didn't print anything to stdout),scalar
does not show any error and when hitting the "Test" button it shows a different route (I haven't tested what happens when there's no other route).Additional information
Although I believe I have the latest version of Elysia as of this point (2024-12-16), I haven't figured out how to run the
Elysia --revision
command. With default installation (bun install elysia
) my shell (ash) simply says:/app # Elysia --revision sh: Elysia: not found
I tried installing globally (
bun install -g elysia
), which also didn't help. Is there anything I'm missing? I'm running elysia under a docker container (alpine linux). Just in case, the versions in the lockfile are:Have you try removing the
node_modules
andbun.lockb
and try again yet?Yes, the issue still reproduces.
The text was updated successfully, but these errors were encountered: