Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Details hook not generating example in Request body in SwaggerUI #790

Open
Luisetepe opened this issue Aug 20, 2024 · 0 comments
Open

Details hook not generating example in Request body in SwaggerUI #790

Luisetepe opened this issue Aug 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Luisetepe
Copy link

Luisetepe commented Aug 20, 2024

What version of Elysia is running?

1.1.7

What platform is your computer?

Darwin 23.6.0 arm64 arm

What steps can reproduce the bug?

Create a simple index.ts file with an Elysia instance with a handler containing detailed documentation for the request body and the responses:

image

What is the expected behavior?

SwaggerUI renders the example request body and responses with the example values in the details.

What do you see instead?

SwaggerUI only renders example values for the response, but not the request body, it just says "string" for the values (both providers, "scalar" and "swaggerUI")

image

Additional information

Latest version of @elysiajs/swagger - 1.1.1 also

Have you try removing the node_modules and bun.lockb and try again yet?

No response

@Luisetepe Luisetepe added the bug Something isn't working label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant