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
I'm using swagger-parser.bundle to pull in external examples in my Swagger file via $ref. I'm noticing that in certain cases, the line breaks in the external files are lost.
There's something about having that : in the external file that makes the line breaks stay in. Is there some bug here that's making the line breaks drop out?
Edit: I'm using swagger-parser v6.0.5.
The text was updated successfully, but these errors were encountered:
timothymcmackin
changed the title
Line breaks lost on bundle resolve
Line breaks lost on bundle()
Mar 21, 2019
I'm using swagger-parser.bundle to pull in external examples in my Swagger file via $ref. I'm noticing that in certain cases, the line breaks in the external files are lost.
For example, check out this gist, which I adapted from petstore v2:
https://gist.github.com/timothymcmackin/0f9a7edd694252f38f8df1426a01c395
In my swagger, I have this $ref:
example.sh
is a two-line file:When I transform (see
resolve.js
in the gist), the output document loses the line breaks:However, if I change
example.sh
to this:the output retains the line breaks:
There's something about having that
:
in the external file that makes the line breaks stay in. Is there some bug here that's making the line breaks drop out?Edit: I'm using swagger-parser v6.0.5.
The text was updated successfully, but these errors were encountered: