twskj / pretty-swag

Pretty UI for Swagger spec
MIT License
121 stars 20 forks source link

ReferenceError: summary is not defined #16

Closed depado closed 7 years ago

depado commented 7 years ago

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 7 years ago

Can you post your swagger.yaml?

twskj commented 7 years ago

rolled out. can you check?

depado commented 7 years ago

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