-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Multiline description with json #82
Comments
@pedro-teixeira this is an issue. |
Thanks @RomanGotsiy |
@RomanGotsiy thank you for the quick fix! I saw you created a new release (v1.1.1) but I think the GitHub pages release is missing. |
Now it's there, it seems to be working fine! Thank you again. |
@pedro-teixeira yes, GitHub pages release is deployed by CI so it requires some time |
@pedro-teixeira I'm sorry but I have to revert this fix. So when you logged this issue I had tried adding a new line here in comments to this issue and it worked: line break was added. So that's why I considered this to be a bug. But now I've checked the same thing on README file and this doesn't work there: a new line is not line break there. I have also checked how SwaggerUI handles this and it doesn't treat newlines as page breaks. As most of the users test their specs on SwaggerUI I don't want to introduce incompatibility here. After I revert this fix you can achieve what you need by the following (according to the markdown spec)
Let me know if you are ok with this. |
@RomanGotsiy works for me! Thank you! |
I think I found this bug in another element, can I request to reopen this issue? the fix is most likely very similar. "Horse": { I have been able to get around this by simply adding <br /> to the xml summaries that are generating the model descriptions. Thanks a lot |
I'm adding descriptions with
\n
but they are not interpreted.Example:
Am I doing something wrong or is this really an issue?
The text was updated successfully, but these errors were encountered: