Merge pull request #1278 from swagger-api/develop_2.0

Merged from develop_2.0
This commit is contained in:
Tony Tam
2015-05-13 08:53:39 -04:00
5 changed files with 6 additions and 6 deletions

View File

@@ -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
View File

@@ -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';
} }
} }

File diff suppressed because one or more lines are too long

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", "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",

View File

@@ -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';
} }
} }