Compare commits

..
12 Commits
Author SHA1 Message Date
Tony Tam 8076ff1462 Merge pull request #1553 from swagger-api/issue-1552
updated client for #1552
2015-08-19 22:51:22 -07:00
Tony Tam ec446fd7f3 updated client from #1552 2015-08-19 22:44:54 -07:00
Tony Tam daa45c4efb Merge pull request #1528 from sloppycoder/master
fix for issue #1516: OAuth logout doesn't work
2015-08-11 10:57:29 -07:00
Li Lin 00a5e4d838 fix for issue #1516: OAuth logout doesn't work 2015-08-11 16:38:03 +08:00
Ron 59c10037f5 Update README.md 2015-08-07 09:59:19 -04:00
Ron 73bdb71f3e Update README.md 2015-08-07 09:58:41 -04:00
Ron a27bbfad6a Update CONTRIBUTING.md 2015-08-07 09:55:28 -04:00
Ron d9ac809b51 Merge pull request #1520 from swagger-api/develop_2.0
Moving to development on master
2015-08-07 09:54:29 -04:00
Tony Tam 04e52d4a63 Merge pull request #1519 from strongloop/upstream-fix/test-timings
Fix timing issues in unit-tests
2015-08-06 17:15:50 -07:00
Tony Tam 7f5d9dc200 Merge pull request #1512 from channelgrabber/issue-1423
Issue #1423: $ref schema objects in Responses Definitions Object don't seem to be displayed correctly
2015-08-06 17:15:32 -07:00
Miroslav Bajtoš f6d7b6a73f Fix timing issues in unit-tests 2015-08-06 17:22:52 +02:00
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
11 changed files with 412 additions and 418 deletions
-4
View File
@@ -1,7 +1,3 @@
## Pull Requests
Please open your pull requests against the [**`develop_2.0`**](https://github.com/swagger-api/swagger-ui/tree/develop_2.0) branch at this time.
## Issues
SwaggerUI uses [SwaggerJS](https://github.com/swagger-api/swagger-js) library for many internal operations. If you see errors in
[`swagger-client.js`](lib/swagger-client.js) file, you should probably open the issue in [SwaggerJS](https://github.com/swagger-api/swagger-js) repository.
+1 -1
View File
@@ -20,7 +20,7 @@ The Swagger Specification has undergone 4 revisions since initial creation in 20
Swagger UI Version | Release Date | Swagger Spec compatibility | Notes | Status
------------------ | ------------ | -------------------------- | ----- | ------
2.1.1 | 2015-06-06 | 1.1, 1.2, 2.0 | [master](https://github.com/swagger-api/swagger-ui) |
2.1.1 | 2015-07-23 | 1.1, 1.2, 2.0 | [tag v.2.1.1](https://github.com/swagger-api/swagger-ui/tree/v2.1.1) |
2.0.24 | 2014-09-12 | 1.1, 1.2 | [tag v2.0.24](https://github.com/swagger-api/swagger-ui/tree/v2.0.24) |
1.0.13 | 2013-03-08 | 1.1, 1.2 | [tag v1.0.13](https://github.com/swagger-api/swagger-ui/tree/v1.0.13) |
1.0.1 | 2011-10-11 | 1.0, 1.1 | [tag v1.0.1](https://github.com/swagger-api/swagger-ui/tree/v1.0.1) |
+2 -2
View File
@@ -167,8 +167,8 @@ function handleLogin() {
function handleLogout() {
for(key in window.authorizations.authz){
window.authorizations.remove(key)
for(key in window.swaggerUi.api.clientAuthorizations.authz){
window.swaggerUi.api.clientAuthorizations.remove(key)
}
window.enabledScopes = null;
$('.api-ic.ic-on').addClass('ic-off');
+381 -377
View File
File diff suppressed because one or more lines are too long
+13 -12
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -167,8 +167,8 @@ function handleLogin() {
function handleLogout() {
for(key in window.authorizations.authz){
window.authorizations.remove(key)
for(key in window.swaggerUi.api.clientAuthorizations.authz){
window.swaggerUi.api.clientAuthorizations.remove(key)
}
window.enabledScopes = null;
$('.api-ic.ic-on').addClass('ic-off');
+2 -2
View File
@@ -8,7 +8,7 @@
}
],
"description": "Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
"version": "2.1.1",
"version": "2.1.2",
"homepage": "http://swagger.io",
"license": "Apache-2.0",
"main": "dist/swagger-ui.js",
@@ -50,6 +50,6 @@
"less": "^2.4.0",
"mocha": "^2.1.0",
"selenium-webdriver": "^2.45.0",
"swagger-client": "2.1.2"
"swagger-client": "2.1.3"
}
}
+2 -2
View File
@@ -139,8 +139,8 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
schemaObj = this.model.responses[code].schema;
if (schemaObj && schemaObj.$ref) {
schema = schemaObj.$ref;
if (schema.indexOf('#/definitions/') === 0) {
schema = schema.substring('#/definitions/'.length);
if (schema.indexOf('#/definitions/') !== -1) {
schema = schema.replace(/^.*#\/definitions\//, '');
}
}
this.model.responseMessages.push({
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports.start = function (specsLocation, done) {
setTimeout(function(){
driver.get(url);
done();
}, process.env.TRAVIS ? 20000 : 3000);
}, process.env.TRAVIS ? 20000 : 5000);
};
module.exports.close = function() {
+4 -7
View File
@@ -4,6 +4,7 @@ var expect = require('chai').expect;
var driver = require('./driver');
var servers = require('./servers');
var webdriver = require('selenium-webdriver');
var until = webdriver.until;
var elements = [
'swagger-ui-container',
@@ -39,12 +40,8 @@ describe('swagger 1.x spec tests', function () {
});
});
it('should have "Swagger UI" in title', function (done) {
driver.sleep(200);
driver.getTitle().then(function(title) {
expect(title).to.contain('Swagger UI');
done();
});
it('should have "Swagger UI" in title', function () {
return driver.wait(until.titleIs('Swagger UI'), 1000);
});
elements.forEach(function (id) {
@@ -102,4 +99,4 @@ describe('swagger 1.x spec tests', function () {
after(function(){
servers.close();
});
});
});
+4 -8
View File
@@ -4,7 +4,7 @@ var expect = require('chai').expect;
var webdriver = require('selenium-webdriver');
var driver = require('./driver');
var servers = require('./servers');
var until = webdriver.until;
var elements = [
'swagger-ui-container',
@@ -40,12 +40,8 @@ describe('swagger 2.0 spec tests', function () {
});
});
it('should have "Swagger UI" in title', function (done) {
driver.sleep(200);
driver.getTitle().then(function(title) {
expect(title).to.contain('Swagger UI');
done();
});
it('should have "Swagger UI" in title', function () {
return driver.wait(until.titleIs('Swagger UI'), 1000);
});
elements.forEach(function (id) {
@@ -117,4 +113,4 @@ describe('swagger 2.0 spec tests', function () {
after(function() {
servers.close();
});
});
});