twskj/pretty-swag

ReferenceError: summary is not defined

Closed this issue · 3 comments

After the html file has been generated and opened in a browser, nothing happens. In the console there's just a single error message which is : ReferenceError: summary is not defined

Insallation mode :

$ sudo npm install -g pretty-swag

Usage :

$ pretty-swag -i swagger.yaml -f lite
Source: swagger.yaml
Dest: doc.html
Format:  lite
MarkDown:  Disable
Nav Bar:  Normal
Theme: blue
DONE
$ firefox doc.html

Error :

ReferenceError: summary is not defined[Learn More]  vue.min.js%20line%207%20%3E%20Function:1:2356
	anonymous https://unpkg.com/vue@2.1.10/dist/vue.min.js%20line%207%20%3E%20Function:1:2356
	de/n.prototype._render https://unpkg.com/vue@2.1.10/dist/vue.min.js:6:10441
	$e/e.prototype._mount/n._watcher< https://unpkg.com/vue@2.1.10/dist/vue.min.js:6:13606
	no.prototype.get https://unpkg.com/vue@2.1.10/dist/vue.min.js:7:27663
	no https://unpkg.com/vue@2.1.10/dist/vue.min.js:7:27609
	$e/e.prototype._mount https://unpkg.com/vue@2.1.10/dist/vue.min.js:6:13576
	Ue.prototype.$mount https://unpkg.com/vue@2.1.10/dist/vue.min.js:8:5637
	Ue.prototype.$mount https://unpkg.com/vue@2.1.10/dist/vue.min.js:8:8522
	Re/e.prototype._init https://unpkg.com/vue@2.1.10/dist/vue.min.js:6:17781
	Ue https://unpkg.com/vue@2.1.10/dist/vue.min.js:6:18445

Line that generates the error :

var vm = new Vue(context);

Nearly at the end of doc.html

bark commented

Can you post your swagger.yaml?

twskj commented

rolled out. can you check?

Awesome, it works now ! Thanks a lot ! ❤️ 🎆