Commit Graph

340 Commits

Author SHA1 Message Date
laurent lepinay
e7b7465335 Merge branch 'develop_2.0' into JSONEditor
Conflicts:
	dist/index.html
	dist/swagger-ui.js
	dist/swagger-ui.min.js
	src/main/coffeescript/view/MainView.coffee
	src/main/coffeescript/view/OperationView.coffee
	src/main/coffeescript/view/ParameterView.coffee
	src/main/coffeescript/view/ResourceView.coffee
	src/main/coffeescript/view/SignatureView.coffee
	src/main/html/index.html
2015-03-24 07:06:07 -07:00
Tony Tam
38ac8428d1 rebuilt 2015-03-17 16:29:02 -07:00
Mohsen Azimi
9b409f75b8 Encode/decode tags before using it in the URL
Fixes #994

Conflicts:
	dist/swagger-ui.min.js
2015-03-17 14:14:28 -07:00
Mohsen Azimi
f49c1689d2 Move backward compatibility to swaggerUi.js and warn users about API changes 2015-03-17 12:10:28 -07:00
Mohsen Azimi
d61cf24ae0 Append swagger-auth global functions to window and don't break backward 2015-03-16 15:07:14 -07:00
Mohsen Azimi
8c6e3a6d95 Append Docs to window for now
also remove expection for global swaggerUi from JSHint
2015-03-16 13:58:05 -07:00
Mohsen Azimi
51bbbf03db Remove all references to swaggerUi global instance 2015-03-16 13:52:38 -07:00
Mohsen Azimi
66adb0d508 Remove global auth object references and fix header api key adding mechanism
Fixes #1033
2015-03-16 13:45:08 -07:00
Mohsen Azimi
9ed1ad88ec Pass router to all views 2015-03-16 11:08:28 -07:00
Mohsen Azimi
4e22ff8b96 Wrap all SwaggerUI code in a iife
to avoid leaking globals other than SwaggerUi and swaggerUi

TODO: we should remove swaggerUi global dependency too
2015-03-12 17:51:44 -07:00
Mohsen Azimi
07ac7fcf95 Fix all JSHint errors 2015-03-12 16:50:57 -07:00
Mohsen Azimi
096cd120a4 Some cleanup in Docs.js
Doc.js is ignored in JSHint so we are not cleaning it up entirely!
2015-03-12 16:46:51 -07:00
Mohsen Azimi
dac83b71c8 Remove global views
Append all views to SwaggerUi.Views object
2015-03-12 16:42:23 -07:00
Mohsen Azimi
8440833f6c Remove [].forEach calls 2015-03-12 16:22:19 -07:00
Mohsen Azimi
f35bbc7ec1 Fix binding error in swagger-js file 2015-03-12 16:22:19 -07:00
Mohsen Azimi
9ad29d72b0 remove coffeescript from build process 2015-03-12 16:22:19 -07:00
laurent lepinay
447b905132 JSONEditor enable/disable flag 2015-03-12 07:12:07 -07:00
Jeremy Whitlock
bdb181cb08 Update swagger-js with latest
* For the e2e tests to run, we had to enable CORS in http-server.  The
  release of http-server that supports CORS hasn't come out yet so we
  have to use http-server@master until then.  Here is the commit I speak
  of: 30f4d1e008
2015-03-11 14:17:11 -06:00
Tony Tam
5ba40f3285 Merge pull request #1018 from mohsen1/favicon
Update favicon with official logo and HiDPI support
2015-03-11 12:59:10 -07:00
Mohsen Azimi
7786919ba1 Fix issue with $.contains in Firefox 2015-03-10 14:34:09 -07:00
Mohsen Azimi
7006e86fa5 Remove global references to swaggerUi object
By passing parent view as an option to child views, child views can
access parent views and eventually can access model of MainView

There is alos a new domEl option available for SwaggerUI constructor.
User can send domEl instead of dom_id to specifiy which element they
want to render to
2015-03-10 11:16:08 -07:00
Mohsen Azimi
dee699833f Update favicon with official logo and HiDPI support 2015-03-09 18:07:35 -07:00
laurent lepinay
eb390ffca2 JSON Editor feature 2015-03-09 07:06:24 -07:00
laurent lepinay
5eaea861a0 JSON Editor feature 2015-03-09 05:37:31 -07:00
Mohsen Azimi
998cfc72b1 Bring back "Raw" link for 1.2 specs 2015-03-06 14:33:54 -08:00
Mohsen Azimi
3e9ef059ec Render externalDocs when it's available 2015-03-05 13:51:16 -08:00
Mohsen Azimi
eeb83a40bd Render response headers
Fixes #930
2015-03-05 10:50:38 -08:00
Tony Tam
d40172c1fb Merge pull request #973 from nunovieira/print.css_2.0
add print style sheet
2015-03-03 16:41:32 -08:00
Mohsen Azimi
33d5331e60 Merge branch 'master' of https://github.com/CatLabInteractive/swagger-ui into CatLabInteractive-master
Conflicts:
	dist/lib/swagger-oauth.js
	dist/swagger-ui.js
	dist/swagger-ui.min.js
	lib/swagger-oauth.js
2015-03-02 10:15:48 -08:00
Mohsen Azimi
98eaa42820 update dependency and test in node 0.12 2015-02-28 09:00:14 -08:00
Nuno Vieira
f10c0ff405 add print style sheet 2015-02-27 18:18:14 +00:00
Tony Tam
a7e7d09e75 made space-delimited 2015-02-27 09:42:05 -08:00
Tony Tam
779db5da6a reverted files 2015-02-27 09:42:04 -08:00
Tony Tam
8f0d89c54a updated js lib 2015-02-27 09:42:04 -08:00
Mohsen Azimi
ef55b90541 user gulp-order to produce ordered template 2015-02-27 09:41:58 -08:00
Mohsen Azimi
13ac198da2 Add 'required' class to list parameter if it's required
Fixes #700
2015-02-27 09:41:53 -08:00
Mohsen Azimi
8da938b9f8 Set marked options to render GFM correctly
Fixes #825
2015-02-27 09:41:44 -08:00
Mohsen Azimi
7622b38426 Add underscore source map file
Fixes #949
2015-02-27 09:41:37 -08:00
Tony Tam
d37befe1b0 updated client for remote ref support 2015-02-27 09:41:25 -08:00
Tony Tam
96672c4e45 updated version 2015-02-27 09:41:16 -08:00
Tony Tam
4c989141b5 rebuilt 2015-02-27 09:41:02 -08:00
Tony Tam
7caac4f4ae updated version, client 2015-02-27 09:40:45 -08:00
Tony Tam
ba0d213329 fix for #944, form data with 2.0 spec 2015-02-27 09:40:25 -08:00
Tony Tam
c0abd35191 rebuilt 2015-02-27 09:40:08 -08:00
Tony Tam
15a22dd62b updated version 2015-02-27 09:39:53 -08:00
Tony Tam
bcfa028f53 updated client 2015-02-27 09:39:20 -08:00
Tony Tam
2d4946c7bd rebuild 2015-02-27 09:38:39 -08:00
Tony Tam
e076929930 rebuilt 2015-02-27 09:37:38 -08:00
Tony Tam
9d0c6c50e7 updated from master 2015-02-27 09:37:25 -08:00
Константин Калинин
8a206e1e96 Appended the checks of existing of translated attributes 2015-02-27 14:06:30 +03:00