Adding support for tabs along with spaces for inline comments#252
Adding support for tabs along with spaces for inline comments#252erunion merged 1 commit intoreadmeio:mainfrom
Conversation
- replace \t characters with four spaces when using the` jsYaml.load()` method
|
@erunion understand that this does not replace a /t instances any thoughts here? Have also tried |
|
@garrett-wade Not sure I'm familiar |
|
@erunion ran some more testing and looks like it needs to be |
|
k, I'll add that in a follow up commit |
|
Published to 5.1.1. Thanks! https://github.com/readmeio/swagger-inline/releases/tag/5.1.1 |
|
@erunion just double checking, are you going to make the update or should I do another PR? Thanks for the timely responses here too. |
|
@garrett-wade i already did and it's in that release! 🙂 |
This is an initial enhancement for the this issue.
This enhancement
\tcharacters with four spaces prior to loading the yaml the js-yaml library.Testing
Create a file with an inline
@oascomment and use tabs instead of spaces when specifying the underlying yaml and run a swagger-inline command on that file.