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

@ApiBody "example" property of OpenAPI missing #3052

Closed
1 task done
nick-loginov opened this issue Aug 27, 2024 · 1 comment
Closed
1 task done

@ApiBody "example" property of OpenAPI missing #3052

nick-loginov opened this issue Aug 27, 2024 · 1 comment
Labels

Comments

@nick-loginov
Copy link

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

It's only possible to use examples of @ApiBody, it should be possible to assign unnamed single example

Describe the solution you'd like

It's possible that this field missing somewhere else, at least add it to @ApiBody

Teachability, documentation, adoption, migration strategy

No response

What is the motivation / use case for changing the behavior?

In real case scenario it would be usefull to have ability of assigning examples to request body inside of controllers

@kamilmysliwiec
Copy link
Member

kamilmysliwiec commented Oct 23, 2024

It does work as expected

image
image

@nestjs nestjs locked and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants