swagger-api/swagger-editor — pull request #234 by jphastings (2014-11-09 21:02:31+00:00)
Title: Request YAML & cope with JSON responses

When loading Swagger docs from a remote location the app now requests YAML, then JSON, then anything else (in that order) via the http `Accept` header so that sites with the ability to send multiple formats return the correct one.

It can now also cope with JSON being returned (which is automatically converted into an object by `$http.get`).