You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*** This is a multiline* comment.*/public myProperty: MyClass[];
Gets translated into this swagger json:
…"myProperty": {"description": "* This is a multiline\n\t * comment.","items": {"$ref": "#/components/schemas/MyClass"},"type": "array"},…
Which SwagGen (understandably) generates this:
// * This is a multiline
* comment.
public varmyProperty:[MyClass]
Although swagger could do a bit better with providing a better generated "description" (e.g. not including the * characters), I think SwagGen should at least provide code that compiles, e.g.:
/// * This is a multiline
/// * comment.
publicvarmyProperty:[MyClass]
In other words: using the dedicated doc comment syntax (///) and adding that delimited to the start of the line so that it's recognized as a doc comment (which makes the code compile).
Has this been considered? Or is there a better way to annotate doc comments in javascript?
All the help is highly appreciated 🙏 Thanks!
The text was updated successfully, but these errors were encountered:
Hey 👋
I've found an issue where code like this:
Gets translated into this swagger json:
Which SwagGen (understandably) generates this:
Although swagger could do a bit better with providing a better generated "description" (e.g. not including the
*
characters), I think SwagGen should at least provide code that compiles, e.g.:In other words: using the dedicated doc comment syntax (
///
) and adding that delimited to the start of the line so that it's recognized as a doc comment (which makes the code compile).Has this been considered? Or is there a better way to annotate doc comments in javascript?
All the help is highly appreciated 🙏 Thanks!
The text was updated successfully, but these errors were encountered: