-
Notifications
You must be signed in to change notification settings - Fork 9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into array-model-markdown-description
- Loading branch information
Showing
65 changed files
with
1,953 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Detecting your Swagger-UI version | ||
|
||
At times, you're going to need to know which version of Swagger-UI you use. | ||
|
||
The first step would be to detect which major version you currently use, as the method of detecting the version has changed. If your Swagger-UI has been heavily modified and you cannot detect from the look and feel which major version you use, you'd have to try both methods to get the exact version. | ||
|
||
To help you visually detect which version you're using, we've included supporting images. | ||
|
||
|
||
# Swagger-UI 3.X | ||
|
||
 | ||
|
||
Some distinct identifiers to Swagger-UI 3.X: | ||
- The API version appears as a badge next to its title. | ||
- If there are schemes or authorizations, they'd appear in a bar above the operations. | ||
- Try it out functionality is not enabled by default. | ||
- All the response codes in the operations appear at after the parameters. | ||
- There's a models section after the operations. | ||
|
||
If you've determined this is the version you have, to find the exact version: | ||
- Open your browser's web console (changes between browsers) | ||
- Type `versions` in the console and execute the call. | ||
- You might need to expand the result, until you get a string similar to `swaggerUi : Object { version: "3.1.6", gitRevision: "g786cd47", gitDirty: true, … }`. | ||
- The version taken from that example would be `3.1.6`. | ||
|
||
Note: This functionality was added in 3.0.8. If you're unable to execute it, you're likely to use an older version, and in that case the first step would be to upgrade. | ||
|
||
|
||
# Swagger-UI 2.X and under | ||
|
||
 | ||
|
||
Some distinct identifiers to Swagger-UI 3.X: | ||
- The API version appears at the bottom of the page. | ||
- Schemes are not rendered. | ||
- Authorization, if rendered, will appear next to the navigation bar. | ||
- Try it out functionality is enabled by default. | ||
- The successful response code would appear above the parameters, the rest below them. | ||
- There's no models section after the operations. | ||
|
||
If you've determined this is the version you have, to find the exact version: | ||
- Navigate to the sources of the UI. Either on your disk or via the view page source functionality in your browser. | ||
- Find an open the `swagger-ui.js` | ||
- At the top of the page, there would be a comment containing the exact version of swagger-ui. This example shows version `2.2.9`: | ||
|
||
``` | ||
/** | ||
* 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.2.9 | ||
* @link http://swagger.io | ||
* @license Apache-2.0 | ||
*/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "swagger-ui", | ||
"version": "3.1.4", | ||
"version": "3.2.2", | ||
"main": "dist/swagger-ui.js", | ||
"repository": "[email protected]:swagger-api/swagger-ui.git", | ||
"contributors": [ | ||
|
@@ -41,6 +41,9 @@ | |
"dependencies": { | ||
"base64-js": "^1.2.0", | ||
"brace": "0.7.0", | ||
"classnames": "^2.2.5", | ||
"commonmark": "^0.28.1", | ||
"css.escape": "1.5.1", | ||
"deep-extend": "0.4.1", | ||
"expect": "1.20.2", | ||
"getbase": "^2.8.2", | ||
|
@@ -65,17 +68,17 @@ | |
"react-motion": "0.4.4", | ||
"react-object-inspector": "0.2.1", | ||
"react-redux": "^4.x.x", | ||
"react-remarkable": "1.1.1", | ||
"react-split-pane": "0.1.57", | ||
"redux": "^3.x.x", | ||
"redux-immutable": "3.0.8", | ||
"redux-logger": "*", | ||
"remarkable": "^1.7.1", | ||
"reselect": "2.5.3", | ||
"sanitize-html": "^1.14.1", | ||
"scroll-to-element": "^2.0.0", | ||
"serialize-error": "2.0.0", | ||
"shallowequal": "0.2.2", | ||
"swagger-client": "3.0.19", | ||
"swagger-client": "^3.1.2", | ||
"url-parse": "^1.1.8", | ||
"whatwg-fetch": "0.11.1", | ||
"worker-loader": "^0.7.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.