Merge pull request #3854 from swagger-api/swagger-ui/versions-doc-fix

Made it clearer how to get version from browser console
This commit is contained in:
kyle
2017-11-01 18:31:27 -07:00
committed by GitHub

View File

@@ -20,8 +20,8 @@ Some distinct identifiers to Swagger-UI 3.X:
If you've determined this is the version you have, to find the exact version: If you've determined this is the version you have, to find the exact version:
- Open your browser's web console (changes between browsers) - Open your browser's web console (changes between browsers)
- Type `versions` in the console and execute the call. - Type `JSON.stringify(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 result should look similar to `swaggerUi : Object { version: "3.1.6", gitRevision: "g786cd47", gitDirty: true, … }`.
- The version taken from that example would be `3.1.6`. - 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. 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.
@@ -51,4 +51,4 @@ If you've determined this is the version you have, to find the exact version:
* @link http://swagger.io * @link http://swagger.io
* @license Apache-2.0 * @license Apache-2.0
*/ */
``` ```