From a6b574deae94c7771f2606dfe1224183d3371e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Bj=C3=B6rklin?= Date: Wed, 1 Nov 2017 07:35:35 +0100 Subject: [PATCH] Made it clearer how to get version from browser console --- docs/version-detection.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/version-detection.md b/docs/version-detection.md index 01bd4422..66277f71 100644 --- a/docs/version-detection.md +++ b/docs/version-detection.md @@ -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: - 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, … }`. +- Type `JSON.stringify(versions)` in the console and execute the call. +- 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`. 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 * @license Apache-2.0 */ - ``` \ No newline at end of file + ```