swagger-vue icon indicating copy to clipboard operation
swagger-vue copied to clipboard

swagger.json with wildcard cause error

Open ManUtopiK opened this issue 6 years ago • 0 comments

My API contain this route path /*. When I execute swagger-vue, it throw an error here (toUpperCase on undefined): https://github.com/chenweiqun/swagger-vue/blob/689037b03fa884c31a3e034cd3a0505107862102/lib/parse.js#L25

I suggest adding path === '/*' to line 10.

ManUtopiK avatar Mar 14 '18 21:03 ManUtopiK