Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

path.dirname called on non-string #33

Open
gabor opened this issue Oct 18, 2016 · 0 comments
Open

path.dirname called on non-string #33

gabor opened this issue Oct 18, 2016 · 0 comments

Comments

@gabor
Copy link

gabor commented Oct 18, 2016

node6 throws an exception because of the line

https://github.com/BigstickCarpet/swagger-server/blob/master/lib/parser.js#L62

when the swagger variable is not a string. this happens when i give swagger-server an already parsed object. this is allowed as documented at https://github.com/BigstickCarpet/swagger-server/blob/master/lib/parser.js#L26

technically speaking this is wrong on node5 too, but there it seems path.dirname is fine with whatever parameter :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant