Swagger-Editor: trying to save locally (Backend)

1,546 views
Skip to first unread message

Emmanuel Paraskakis

unread,
Oct 28, 2014, 5:24:10 PM10/28/14
to swagger-sw...@googlegroups.com
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 backendEndpoint) 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'

Emmanuel Paraskakis

unread,
Oct 29, 2014, 3:57:57 PM10/29/14
to swagger-sw...@googlegroups.com
bumping this up - anyone have ideas?

Ron

unread,
Nov 5, 2014, 4:00:57 AM11/5/14
to swagger-sw...@googlegroups.com
Hi Emmanuel,

Apologies but for some reason gmail decided this message was spam so I only saw it now.
I'd suggest opening an issue directly on swagger-editor's repo to get an answer for this question.


--
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 swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

tayl k

unread,
Oct 28, 2016, 4:56:14 PM10/28/16
to Swagger
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?
Reply all
Reply to author
Forward
0 new messages