Add support for multi-line annotations #911
Labels
difficulty: intermediate
Enterprising community members could help
effort: medium
< 3 days of work
help wanted
Solution is well-specified enough that any community member could fix
theme: plumb() ✨
`plumbBlock()` enhancements
type: enhancement
Adds a new, backwards-compatible feature
Currently, annotations appear only to support single-line descriptions. For example, using the quickstart example with a lengthened
@param
field that is split across two lines:...results in the parameter documentation for
msg
being cut off at the end of the first line:The same thing occurs with redoc:
The expected behaviour is for multi-line annotations to render the entire text, in the same way that roxygen documentation works. I've tried various levels of indentation for the second line, as well as adding
\n
to the first line, but it's always cut off.I'm not sure whether this can be handled in plumber without upstream changes in swagger (etc.).
The text was updated successfully, but these errors were encountered: