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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTUxMjYsIm5iZiI6MTczOTM1NDgyNiwicGF0aCI6Ii8yNzk5NjcxMi8zMjc4Nzg1MTAtMDFiZjVjMWQtMjYwMy00OWEyLWIwZmQtNjQzNGZmMTMxMWFiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDEwMDcwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU0OWY1NDFiZWQ3N2IyY2E5Y2U4MzRiNTE3YjQ4NDg0MmVlMDE1NjVkOTRlOWZkZjU4ZThlZDgxZjRiMDE3ZmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.F81Almr6EYsM-F2AWRFB6sgTT_Na4ji-1w9s1Li5MtA)
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