Swagger-editor: Where does swagger-editor save in-progress specs?

Created on 27 Jul 2015  路  5Comments  路  Source: swagger-api/swagger-editor

I'm trying to retrieve work that was in progress but not exported. Is it lost?

question

Most helpful comment

Where is the file stored when the status bar does show "saved"? The browser crashed and when I restarted, the contents was one of the examples.

All 5 comments

If you closed the tab before editor showing "saved" message in status bar your changes are lost unfortunately

Where is the file stored when the status bar does show "saved"? The browser crashed and when I restarted, the contents was one of the examples.

drap or user File menu to open a yaml file and do some changes.
where is changes saved when "All changes saved" is showed in browser?
original file is not changed!

Just a comment that it since the local browser storage is used it makes a difference in what URL is pulled up. I just ran into this and loaded http://127.0.0.1:3001 from the local browser and thought I lost everything but it was actually stored under the cache of the browser under http://localhost:3001.

@tagyoureit this is a good point.

Since browser security policies keep localStorage instances segmented by origin, there's not anything we can do to detect/warn the user about this that wouldn't require us to maintain a cross-origin hub server-side (which a lot of people wouldn't want an open-source project to do).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

confuser picture confuser  路  6Comments

freak4pc picture freak4pc  路  3Comments

radj picture radj  路  5Comments

variable picture variable  路  4Comments

bluesh55 picture bluesh55  路  3Comments