Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8076ff1462 | ||
|
|
ec446fd7f3 | ||
|
|
daa45c4efb | ||
|
|
00a5e4d838 | ||
|
|
59c10037f5 | ||
|
|
73bdb71f3e | ||
|
|
a27bbfad6a | ||
|
|
d9ac809b51 | ||
|
|
04e52d4a63 | ||
|
|
7f5d9dc200 | ||
|
|
f6d7b6a73f | ||
|
|
ed41c336a3 |
@@ -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.
|
||||
|
||||
|
||||
@@ -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) |
|
||||
|
||||
4
dist/lib/swagger-oauth.js
vendored
4
dist/lib/swagger-oauth.js
vendored
@@ -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');
|
||||
|
||||
758
dist/swagger-ui.js
vendored
758
dist/swagger-ui.js
vendored
File diff suppressed because one or more lines are too long
25
dist/swagger-ui.min.js
vendored
25
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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');
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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,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,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();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user