Emmanuel, i am just starting with swagger-editor and swagger ui. In hope to do the samething as you. Did you resolve your issue? Mind sharing?
On Tuesday, October 28, 2014 at 11:24:10 AM UTC-10, Emmanuel Paraskakis wrote: > > I'm running swagger-editor on a docker conatiner and I'm hoping to save > specs locally, so I can pick them up and display them in swagge-ui. > > I have looked into > https://github.com/swagger-api/swagger-editor/blob/master/docs/config.rst > for hints on the settings for /app/scripts/enums/defaults.js. > > Specifically, I have created /app/editor/spec (as set by *backendEndpoin*t) > I am setting *useBackendForStorage* to *true*. > This breaks swagger-editor and will not save the file locally, regardless > of whether I set *useYamlBackend* to *true* or *false*. > > YAML Syntax Error > End of the stream or a document separator is expected at line 7, column 9: > margin: 0; > ^ > Go to line 6 > Details > Object > yamlError: YAMLException > name: "YAMLException" > reason: "end of the stream or a document separator is expected" > mark: Mark > message: "JS-YAML: end of the stream or a document separator is expected > at line 7, column 9: > margin: 0; > ^" > line: 774 > column: 38 > sourceURL: " > http://192.168.59.103:8080/bower_components/js-yaml/dist/js-yaml.js" > > > Is the feature still under development, or is it supposed to work (which > means I'm doing something wrong)? > > Thanks, > > Emmanuel > > PS - I'm also getting the following when I npm start, but I don't believe > it's relevent here: > > Loading "imagemin.js" tasks...ERROR > >> Error: Cannot find module 'imagemin-gifsicle' > > -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
