How do i add a description to a @BodyParams
#2697
Closed
VictoriqueMoe
started this conversation in
General
Replies: 1 comment 4 replies
-
I have to fix the @tsed/schema. There is no workaround and this usecase isn't covered. I'll make a PR Asap! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following params:
but the generated swagger doc is:
as you can see, there is only one description and it's on the top level for some reason.
so in the UI, it looks weird
![image](https://private-user-images.githubusercontent.com/27996712/327878510-01bf5c1d-2603-49a2-b0fd-6434ff1311ab.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MDcwMTIsIm5iZiI6MTcyNDUwNjcxMiwicGF0aCI6Ii8yNzk5NjcxMi8zMjc4Nzg1MTAtMDFiZjVjMWQtMjYwMy00OWEyLWIwZmQtNjQzNGZmMTMxMWFiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDEzMzgzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNiYWQ1NjA2NGJkZGUzMDgyMGJkZTNmNDNmYjQ3ZTRlN2FkMWM4OTViMTk3YTEwN2UzZGU1YjU4NDE4NDMwZTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.n7qHbcafveII_jc8leU8PsT9qWsfOkMEfx9CJ1E2aSQ)
Is it possible to add description for each body param? or am i doing it wrong :(
Beta Was this translation helpful? Give feedback.
All reactions