Merge pull request #1278 from swagger-api/develop_2.0
Merged from develop_2.0
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "swagger-ui",
|
"name": "swagger-ui",
|
||||||
"main": "dist/index.html",
|
"main": "dist/index.html",
|
||||||
"version": "2.1.3-M2",
|
"version": "2.1.4-M2",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Mohsen Azimi <me@azimi.me>"
|
"Mohsen Azimi <me@azimi.me>"
|
||||||
],
|
],
|
||||||
|
|||||||
4
dist/swagger-ui.js
vendored
4
dist/swagger-ui.js
vendored
@@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* swagger-ui - Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API
|
* swagger-ui - Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API
|
||||||
* @version v2.1.3-M2
|
* @version v2.1.4-M2
|
||||||
* @link http://swagger.io
|
* @link http://swagger.io
|
||||||
* @license Apache 2.0
|
* @license Apache 2.0
|
||||||
*/
|
*/
|
||||||
@@ -20891,7 +20891,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Default validator
|
// Default validator
|
||||||
if(window.location.protocol.startsWith('http')) {
|
if(window.location.protocol.indexOf('http') === 0) {
|
||||||
this.model.validatorUrl = window.location.protocol + '//online.swagger.io/validator';
|
this.model.validatorUrl = window.location.protocol + '//online.swagger.io/validator';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
dist/swagger-ui.min.js
vendored
2
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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",
|
"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.3-M2",
|
"version": "2.1.4-M2",
|
||||||
"homepage": "http://swagger.io",
|
"homepage": "http://swagger.io",
|
||||||
"license": "Apache 2.0",
|
"license": "Apache 2.0",
|
||||||
"main": "dist/swagger-ui.js",
|
"main": "dist/swagger-ui.js",
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Default validator
|
// Default validator
|
||||||
if(window.location.protocol.startsWith('http')) {
|
if(window.location.protocol.indexOf('http') === 0) {
|
||||||
this.model.validatorUrl = window.location.protocol + '//online.swagger.io/validator';
|
this.model.validatorUrl = window.location.protocol + '//online.swagger.io/validator';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user