Commit Graph
42 Commits
Author SHA1 Message Date
Aaron Baker ed41c336a3 Issue #1423: responses containing references to definitions were not being fully resolved when the spec was pulled in over AJAX but was working locally. OperationView.render()'s parsing of the responses was just checking if the ref _started_ with '#/definitions/', not whether it contained it, and when pulled in over AJAX the refs have the URL prepended to them 2015-08-05 12:48:34 +01:00
Tony Tam 29dc4b929d Merge pull request #1387 from brownstein/fix-oauth-toggle-on-operations
Fix incorrect display of oAuth toggle in non-oAuth operation views
2015-07-22 17:59:55 -07:00
Robert Brownstein 128fc5c112 Found a bug in OperationView.js which caused the oAuth toggle to be displayed for non-oAuth endpoints if oAuth was enabled at all, fixed it 2015-06-19 13:37:54 -04:00
Vladimir L eaaf62a01e removed unnesessary logic, replaced by CSS style 2015-06-11 21:26:30 +02:00
Vladimir L 695dcc16b1 fixed issue with OAuth hint 2015-06-11 21:21:37 +02:00
Tony Tam c7e07705f2 removed logging 2015-06-06 08:22:40 -07:00
Tony Tam 9ba75c02be fix for lint errors 2015-06-03 23:04:57 -07:00
Tony Tam 58dadc64f8 rebuilt 2015-06-03 22:45:26 -07:00
Tony Tam 62afd58210 merged 2015-06-03 22:36:46 -07:00
Tony Tam fc6ad9977c merged 2015-06-03 22:16:43 -07:00
Shawn Gong 1ef90c4240 rewrote into source files, generate using gulp 2015-06-02 10:11:00 -04:00
Vitaliy Kanev 88838213c8 remove fileupload function 2015-05-16 15:47:45 +03:00
Vitaliy Kanev 9688af989e fixed: REFACTOR handleFileUpload 2015-05-16 15:42:50 +03:00
Nara Kasbergen 6ce834cfa9 fixes #693 2015-05-14 18:13:31 -04:00
Nara Kasbergen 59f53a96c1 fixes #958 2015-05-14 17:14:03 -04:00
Tony Tam a02cea119d merged #1238 2015-05-08 13:28:12 -07:00
Tony Tam 17dca9e256 Merge pull request #1173 from BjRo/handle_whitespace_in_response
Prevent the OperationView to display an error in case the response contains a whitespace only body with content type application/json
2015-05-08 12:30:01 -07:00
Tony Tam cdd80820cf fix for #1253 2015-05-08 12:23:18 -07:00
Tony Tam 9c58ed7018 Merge branch 'multi-value-params' of ssh://github.com/valdemon/swagger-ui into valdemon-multi-value-params 2015-05-08 12:10:01 -07:00
Tony Tam 1696a1ba34 added fix from outdated PR #1122 2015-05-08 12:06:56 -07:00
Tony Tam ba855e3d04 Merge pull request #1112 from 3scale/op-execute
Pass swagger options to swagger-js Operation#execute method
2015-05-08 12:03:56 -07:00
Björn Rochel 569830b4ac Use jQuery for trimming 2015-04-16 20:37:19 +02:00
Bjoern Rochel 6a1707e3ba Prevent the OperationView to display an error in case the response contains a whitespace only body with content type application/json 2015-04-16 11:59:27 +02:00
Tony Tam 3441403fda Merge branch 'develop_2.0' into fix-1109 2015-04-15 12:26:25 -07:00
Mohsen Azimi e6664851b3 Support plain text in response
Fixes #1109
Fixes #1111
2015-04-15 12:05:48 -07:00
Mohsen Azimi 53966f7aa8 Fix issue #1132 "JS error when testing uploadFile method (http://petstore.swagger.io/#!/pet/uploadFile)" 2015-04-14 14:01:38 -07:00
Waldek Kozba af39ae0603 Multiple values for array type parameters as separated lines in the textarea.
Improved required parameter handling for the array type.
Improved default value handling for the array type.
2015-04-03 14:31:23 +00:00
aurelian c84202c1d7 Pass empty object to guard the case when options.swaggerOptions is undefined 2015-04-02 11:27:28 +02:00
aurelian 4764d33fe5 Pass swagger options to swagger-js Operation#execute method 2015-04-01 23:54:14 +02:00
Mohsen Azimi 3de0b36a4e Fix JSHint issues 2015-03-26 13:09:08 -07:00
Mohsen Azimi d451c2b539 Add link innerText 2015-03-26 13:08:23 -07:00
Mohsen Azimi c157fe41c1 Add support for downloading via Blob 2015-03-26 13:06:33 -07:00
Mohsen Azimi 6b8f6e2827 Add file download to try operation 2015-03-26 11:41:06 -07:00
Livio Soares b181fa95a0 OperatioView.js: fix rendering of Markdown (GFM) in description fields.
This removes substitution of \r\n, \r, \n to <br>, since the subsequent set of
renderGFM() gets confused by them. Furthermore, the marked module already does a
decent job of substituting \n with proper HTML (<p>, if I'm not mistaken).
2015-03-18 23:38:28 -04: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
Tony Tam f073f192a2 Merge pull request #1036 from mohsen1/remove-swaggerui-global-instance
Remove swaggerui global instance
2015-03-17 13:57:18 -07:00
Tony Tam 58982430c4 fix for #968, removed block 2015-03-16 21:21:35 -07:00
Mohsen Azimi 51bbbf03db Remove all references to swaggerUi global instance 2015-03-16 13:52:38 -07:00
Mohsen Azimi 9ed1ad88ec Pass router to all views 2015-03-16 11:08:28 -07:00
Mohsen Azimi 07ac7fcf95 Fix all JSHint errors 2015-03-12 16:50:57 -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 215a8fa63e Move all files to javascript folder and remove coffeescript folder 2015-03-12 16:21:31 -07:00