From 8a23ac67f16260d7f7704dd81da70924304cccf8 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Sun, 11 Dec 2016 22:54:09 +0200 Subject: [PATCH 01/11] Update CHANGELOG.md --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a8e1858..8e6f9828 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# 1.6.2 (2016-12-11) +### Bug fixes +* Use markdown in responses description ([#158](https://github.com/Rebilly/ReDoc/issues/158)) + +### Features/Improvements +* [x-displayName](https://github.com/Rebilly/ReDoc/blob/master/docs/redoc-vendor-extensions.md#x-displayname) for tags - by [@bfirsh](https://github.com/bfirsh) ([PR #152](https://github.com/Rebilly/ReDoc/pull/152)) + # 1.6.1 (2016-12-02) ### Bug fixes * Fix only the first instance of schema was rendered ([#150](https://github.com/Rebilly/ReDoc/issues/150)) From 06adadef2ed60bca4a26e0aed09a684622c76b0a Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Sun, 11 Dec 2016 22:57:22 +0200 Subject: [PATCH 02/11] Update README.md [skip ci] --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 90607e9c..bcf0ab44 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ ReDoc makes use of the following [vendor extensions](http://swagger.io/specifica * [`x-traitTag`](docs/redoc-vendor-extensions.md#x-traitTag) - useful for handling out common things like Pagination, Rate-Limits, etc * [`x-code-samples`](docs/redoc-vendor-extensions.md#x-code-samples) - specify operation code samples * [`x-nullable`](docs/redoc-vendor-extensions.md#nullable) - mark schema param as a nullable +* [`x-displayName`](docs/redoc-vendor-extensions.md#x-displayname) - specify human-friendly names for the menu categories ### `` tag attributes * `spec-url` - relative or absolute url to your spec file; From a3786847d2a84929a808e144a159af360d784605 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Mon, 12 Dec 2016 15:43:01 +0200 Subject: [PATCH 03/11] Disable side-menu animation (workaround for #162) --- lib/components/SideMenu/side-menu.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/components/SideMenu/side-menu.ts b/lib/components/SideMenu/side-menu.ts index 7a46dcf9..fd97c2cb 100644 --- a/lib/components/SideMenu/side-menu.ts +++ b/lib/components/SideMenu/side-menu.ts @@ -21,9 +21,10 @@ const global = window; style({ height: '0px' })), state('expanded', style({ height: '*' })), - transition('collapsed <=> expanded', [ - animate('200ms ease') - ]) + // https://github.com/Rebilly/ReDoc/issues/162 + // transition('collapsed <=> expanded', [ + // animate('200ms ease') + // ]) ]) ], }) From bba35337e645f924f54822d3f73f3bf68238e8ac Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 13 Dec 2016 08:08:37 +0200 Subject: [PATCH 04/11] Use markdown for response description (fixes #158) --- lib/components/ResponsesList/responses-list.html | 2 +- lib/shared/components/Zippy/zippy.html | 2 +- lib/shared/components/Zippy/zippy.scss | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/components/ResponsesList/responses-list.html b/lib/components/ResponsesList/responses-list.html index 192b80f8..07e6579a 100644 --- a/lib/components/ResponsesList/responses-list.html +++ b/lib/components/ResponsesList/responses-list.html @@ -1,5 +1,5 @@

Responses

-
diff --git a/lib/shared/components/Zippy/zippy.html b/lib/shared/components/Zippy/zippy.html index 5ba42121..f6c92aec 100644 --- a/lib/shared/components/Zippy/zippy.html +++ b/lib/shared/components/Zippy/zippy.html @@ -5,7 +5,7 @@ - {{title}} +
diff --git a/lib/shared/components/Zippy/zippy.scss b/lib/shared/components/Zippy/zippy.scss index a72b7ef9..bed7cb7a 100644 --- a/lib/shared/components/Zippy/zippy.scss +++ b/lib/shared/components/Zippy/zippy.scss @@ -45,11 +45,15 @@ $zippy-redirect-bg-color: rgba($zippy-redirect-color, .08); color: $zippy-info-color; background-color: $zippy-info-bg-color; } + + /deep/ p { + font-weight: normal; + } } .zippy-indicator svg { height: 1.2em; - vertical-align: middle; + vertical-align: top; transition: all 0.3s ease; transform: rotateZ(-180deg); } @@ -81,6 +85,8 @@ span.zippy-indicator { font-size: 1.2em; text-align: center; display: inline-block; + float: left; + margin-right: 5px; } .zippy-content { From 03e779c0d1a1f4f022e5fc7a91256d56afb65aae Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 13 Dec 2016 08:10:18 +0200 Subject: [PATCH 05/11] provide static APP_ID --- lib/redoc.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/redoc.module.ts b/lib/redoc.module.ts index a8224fb3..b13b2dc3 100644 --- a/lib/redoc.module.ts +++ b/lib/redoc.module.ts @@ -1,4 +1,4 @@ -import { NgModule, ErrorHandler } from '@angular/core'; +import { NgModule, ErrorHandler, APP_ID } from '@angular/core'; import { CommonModule } from '@angular/common'; import { Redoc, SecurityDefinitions, Method, REDOC_DIRECTIVES } from './components/index'; @@ -35,6 +35,7 @@ import { SpecManager } from './utils/spec-manager'; ComponentParser, ContentProjector, LazyTasksService, + { provide: APP_ID, useValue: 'redoc' }, { provide: ErrorHandler, useClass: CustomErrorHandler }, { provide: COMPONENT_PARSER_ALLOWED, useValue: { 'security-definitions': SecurityDefinitions} } ], From 95f2da8b97c9cffb228a37459557baf2133c952b Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Wed, 14 Dec 2016 14:49:02 +0200 Subject: [PATCH 06/11] add expand-responses option --- README.md | 1 + .../ResponsesList/responses-list.html | 4 ++-- lib/components/ResponsesList/responses-list.ts | 7 +++++++ lib/services/options.service.spec.ts | 17 ++++++++++++++++- lib/services/options.service.ts | 11 +++++++++-- 5 files changed, 35 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bcf0ab44..3bf8cdad 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,7 @@ ReDoc makes use of the following [vendor extensions](http://swagger.io/specifica * `suppress-warnings` - if set, warnings are not rendered at the top of documentation (they still are logged to the console). * `lazy-rendering` - if set, enables lazy rendering mode in ReDoc. This mode is useful for APIs with big number of operations (e.g. > 50). In this mode ReDoc shows initial screen ASAP and then renders the rest operations asynchronously while showing progress bar on the top. Check out the [demo](\\rebilly.github.io/ReDoc) for the example. * `hide-hostname` - if set, the protocol and hostname is not shown in the method definition. +* `expand-responses` - specify which responses to expand by default by response codes. Values should be passed as comma-separated list without spaces e.g. `expand-responses="200,201"`. Special value `"all"` expands all responses by default. Be careful: this option can slow-down documentation rendering time. ## Advanced usage Instead of adding `spec-url` attribute to the `` element you can initialize ReDoc via globally exposed `Redoc` object: diff --git a/lib/components/ResponsesList/responses-list.html b/lib/components/ResponsesList/responses-list.html index 07e6579a..8bbd42cc 100644 --- a/lib/components/ResponsesList/responses-list.html +++ b/lib/components/ResponsesList/responses-list.html @@ -1,6 +1,6 @@

Responses

+ [type]="response.type" [visible]="response.expanded" [empty]="response.empty" (open)="lazySchema.load()">
Headers @@ -20,6 +20,6 @@
Response Schema
- + diff --git a/lib/components/ResponsesList/responses-list.ts b/lib/components/ResponsesList/responses-list.ts index 08b8b303..f7744041 100644 --- a/lib/components/ResponsesList/responses-list.ts +++ b/lib/components/ResponsesList/responses-list.ts @@ -49,6 +49,13 @@ export class ResponsesList extends BaseComponent implements OnInit { resp.empty = !resp.schema; resp.code = respCode; resp.type = statusCodeType(resp.code); + + if (this.options.expandResponses) { + if (this.options.expandResponses === 'all' || this.options.expandResponses.has(respCode.toString())) { + resp.expanded = true; + } + } + if (resp.headers && !(resp.headers instanceof Array)) { resp.headers = Object.keys(resp.headers).map((k) => { let respInfo = resp.headers[k]; diff --git a/lib/services/options.service.spec.ts b/lib/services/options.service.spec.ts index c02af6cd..1b887f92 100644 --- a/lib/services/options.service.spec.ts +++ b/lib/services/options.service.spec.ts @@ -14,7 +14,8 @@ describe('Options Service', () => { } afterEach(() => { - document.body.removeChild(tmpDiv); + if (tmpDiv) document.body.removeChild(tmpDiv); + tmpDiv = false; }); beforeEach(() => { @@ -47,4 +48,18 @@ describe('Options Service', () => { optionsService.parseOptions(elem); optionsService.options.scrollYOffset().should.be.equal(123); }); + + it('should convert expandResponses options to Set', () => { + optionsService.options = { expandResponses: '200,300' }; + optionsService._normalizeOptions(); + optionsService.options.expandResponses.should.be.instanceof(Set); + Array.from(optionsService.options.expandResponses.values()).should.deepEqual(['200', '300']); + }); + + it('should preserve special value "all" as string', () => { + optionsService.options = { expandResponses: 'all' }; + optionsService._normalizeOptions(); + optionsService.options.expandResponses.should.be.of.type('string'); + optionsService.options.expandResponses.should.be.equal('all'); + }); }); diff --git a/lib/services/options.service.ts b/lib/services/options.service.ts index e8e41663..4da11b42 100644 --- a/lib/services/options.service.ts +++ b/lib/services/options.service.ts @@ -14,7 +14,8 @@ const OPTION_NAMES = new Set([ 'specUrl', 'suppressWarnings', 'hideHostname', - 'lazyRendering' + 'lazyRendering', + 'expandResponses' ]); interface Options { @@ -24,6 +25,7 @@ interface Options { suppressWarnings?: boolean; hideHostname?: boolean; lazyRendering?: boolean; + expandResponses?: Set | 'all'; $scrollParent?: HTMLElement | Window; } @@ -36,7 +38,7 @@ export class OptionsService { this._normalizeOptions(); } - get options():Options { + get options(): Options { return this._options; } @@ -89,5 +91,10 @@ export class OptionsService { if (isString(this._options.suppressWarnings)) this._options.suppressWarnings = true; if (isString(this._options.hideHostname)) this._options.hideHostname = true; if (isString(this._options.lazyRendering)) this._options.lazyRendering = true; + if (isString(this._options.expandResponses)) { + let str = this._options.expandResponses as string; + if (str === 'all') return; + this._options.expandResponses = new Set(str.split(',')); + } } } From 104bcb9cef9241e8bbb3a6a0ff012cf05e8cadd2 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Mon, 19 Dec 2016 17:13:39 +0200 Subject: [PATCH 07/11] Fix leaks (fixes #167) --- lib/components/Redoc/redoc.ts | 13 ++++++++++++- lib/components/SideMenu/side-menu.ts | 9 +++++++-- lib/index.ts | 1 - lib/services/menu.service.ts | 9 ++++++++- 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/lib/components/Redoc/redoc.ts b/lib/components/Redoc/redoc.ts index 8efcd4d7..33d3b638 100644 --- a/lib/components/Redoc/redoc.ts +++ b/lib/components/Redoc/redoc.ts @@ -5,6 +5,7 @@ import { ElementRef, Input, Component, OnInit, + OnDestroy, HostBinding } from '@angular/core'; @@ -26,7 +27,9 @@ import { LazyTasksService } from '../../shared/components/LazyFor/lazy-for'; export class Redoc extends BaseComponent implements OnInit { static _preOptions: any; - private element: any; + private element: HTMLElement; + private $parent: Element; + private $refElem: Element; error: any; specLoaded: boolean; @@ -53,6 +56,9 @@ export class Redoc extends BaseComponent implements OnInit { optionsMgr.options = Redoc._preOptions || {}; this.element = elementRef.nativeElement; + this.$parent = this.element.parentElement; + this.$refElem = this.element.nextElementSibling; + //parse options (top level component doesn't support inputs) optionsMgr.parseOptions( this.element ); let scrollParent = detectScollParent( this.element ); @@ -121,4 +127,9 @@ export class Redoc extends BaseComponent implements OnInit { } this.load(); } + + ngOnDestroy() { + let $clone = this.element.cloneNode(); + this.$parent.insertBefore($clone, this.$refElem); + } } diff --git a/lib/components/SideMenu/side-menu.ts b/lib/components/SideMenu/side-menu.ts index fd97c2cb..3a6bc0fc 100644 --- a/lib/components/SideMenu/side-menu.ts +++ b/lib/components/SideMenu/side-menu.ts @@ -1,6 +1,6 @@ 'use strict'; -import { Component, ElementRef, ChangeDetectorRef, OnInit } from '@angular/core'; +import { Component, ElementRef, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core'; //import { global } from '@angular/core/src/facade/lang'; import { trigger, state, animate, transition, style } from '@angular/core'; @@ -28,7 +28,7 @@ const global = window; ]) ], }) -export class SideMenu extends BaseComponent implements OnInit { +export class SideMenu extends BaseComponent implements OnInit, OnDestroy { activeCatCaption: string; activeItemCaption: string; categories: Array; @@ -123,6 +123,11 @@ export class SideMenu extends BaseComponent implements OnInit { destroy() { this.scrollService.unbind(); + this.menuService.destroy(); + } + + ngOnDestroy() { + this.destroy(); } ngOnInit() { diff --git a/lib/index.ts b/lib/index.ts index bb2fdc3a..163de55a 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -33,7 +33,6 @@ export function init(specUrl:string, options:any = {}) { moduleRef = appRef; console.log('ReDoc initialized!'); }).catch(err => { - //Redoc.displayError(err); throw err; }); }; diff --git a/lib/services/menu.service.ts b/lib/services/menu.service.ts index d470facb..bd32b9b5 100644 --- a/lib/services/menu.service.ts +++ b/lib/services/menu.service.ts @@ -1,5 +1,6 @@ 'use strict'; import { Injectable, EventEmitter } from '@angular/core'; +import { Subscription } from 'rxjs/Subscription'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { ScrollService, INVIEW_POSITION } from './scroll.service'; import { Hash } from './hash.service'; @@ -16,6 +17,8 @@ const CHANGE = { @Injectable() export class MenuService { + private _hashSubscription: Subscription; + changed: EventEmitter = new EventEmitter(); ready: BehaviorSubject = new BehaviorSubject(false); categories: Array; @@ -39,7 +42,7 @@ export class MenuService { //this.changeActive(CHANGE.INITIAL); - this.hash.value.subscribe((hash) => { + this._hashSubscription = this.hash.value.subscribe((hash) => { if (hash == undefined) return; this.setActiveByHash(hash); if (!this.tasks.empty) { @@ -228,4 +231,8 @@ export class MenuService { } this.activate(catIdx, methodIdx); } + + destroy() { + this._hashSubscription.unsubscribe(); + } } From cc8e0f6ba552beddae047d438d443317e875e757 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Mon, 19 Dec 2016 17:36:44 +0200 Subject: [PATCH 08/11] Fix linting errors --- lib/components/Redoc/redoc.ts | 8 ++++---- lib/services/menu.service.ts | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/components/Redoc/redoc.ts b/lib/components/Redoc/redoc.ts index 33d3b638..7bbefece 100644 --- a/lib/components/Redoc/redoc.ts +++ b/lib/components/Redoc/redoc.ts @@ -27,16 +27,16 @@ import { LazyTasksService } from '../../shared/components/LazyFor/lazy-for'; export class Redoc extends BaseComponent implements OnInit { static _preOptions: any; - private element: HTMLElement; - private $parent: Element; - private $refElem: Element; - error: any; specLoaded: boolean; options: any; loadingProgress: number; + private element: HTMLElement; + private $parent: Element; + private $refElem: Element; + @Input() specUrl: string; @HostBinding('class.loading') specLoading: boolean = false; @HostBinding('class.loading-remove') specLoadingRemove: boolean = false; diff --git a/lib/services/menu.service.ts b/lib/services/menu.service.ts index bd32b9b5..f76b85fd 100644 --- a/lib/services/menu.service.ts +++ b/lib/services/menu.service.ts @@ -17,7 +17,6 @@ const CHANGE = { @Injectable() export class MenuService { - private _hashSubscription: Subscription; changed: EventEmitter = new EventEmitter(); ready: BehaviorSubject = new BehaviorSubject(false); @@ -26,6 +25,8 @@ export class MenuService { activeCatIdx: number = 0; activeMethodIdx: number = -1; + private _hashSubscription: Subscription; + constructor( private hash:Hash, private tasks: LazyTasksService, From 8cd4e863714c0cb7a66ee92371e237d43323f7b4 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Mon, 19 Dec 2016 22:43:16 +0200 Subject: [PATCH 09/11] Update webpack and stick to ts@2.0.9 (fixes #36) --- .gitignore | 2 ++ build/webpack.dev.js | 2 +- package.json | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 82cb0860..01e1272c 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,8 @@ lib/**/*.css # files produced by ngc lib/**/*.ngfactory.ts lib/**/*.css.shim.ts +lib/**/*.ngsummary.json +lib/**/*.shim.ngstyle.ts # other /dist diff --git a/build/webpack.dev.js b/build/webpack.dev.js index 3d483811..e7b24293 100644 --- a/build/webpack.dev.js +++ b/build/webpack.dev.js @@ -9,7 +9,7 @@ const IS_PRODUCTION = process.env.NODE_ENV === "production"; module.exports = { devtool: '#inline-source-map', - + performance: { hints: false }, resolve: { extensions: ['.ts', '.js', '.json', '.css'], alias: { diff --git a/package.json b/package.json index 4f5aca28..98599265 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "@types/requirejs": "^2.1.26", "@types/should": "^8.1.28", "angular2-template-loader": "^0.6.0", - "awesome-typescript-loader": "2.2.4", + "awesome-typescript-loader": "^2.2.4", "branch-release": "^1.0.3", "chalk": "^1.1.3", "codelyzer": "^2.0.0-beta.1", @@ -95,8 +95,8 @@ "style-loader": "^0.13.1", "ts-helpers": "^1.1.1", "tslint": "^4.0.2", - "typescript": "^2.0.3", - "webpack": "^2.1.0-beta.27", + "typescript": "2.0.9", + "webpack": "^2.1.0-beta.28", "webpack-dev-server": "^2.1.0-beta.12", "zone.js": "^0.6.25" }, From dbf39d3d51dea03bb8a9d4727a9805e212dc8ffc Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Mon, 19 Dec 2016 22:58:39 +0200 Subject: [PATCH 10/11] Update angular and deps --- build/webpack.prod.js | 1 + package.json | 36 ++++++++++++++++++------------------ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/build/webpack.prod.js b/build/webpack.prod.js index 54ef935c..baeee310 100644 --- a/build/webpack.prod.js +++ b/build/webpack.prod.js @@ -14,6 +14,7 @@ const IS_MODULE = process.env.IS_MODULE != null; const config = { context: root(), devtool: 'source-map', + performance: { hints: false }, resolve: { extensions: ['.ts', '.js', '.json', '.css'], diff --git a/package.json b/package.json index 98599265..838ed9b3 100644 --- a/package.json +++ b/package.json @@ -45,13 +45,13 @@ "author": "Roman Hotsiy", "license": "MIT", "devDependencies": { - "@angular/common": "^2.2.4", - "@angular/compiler": "^2.2.4", - "@angular/compiler-cli": "^2.2.4", - "@angular/core": "^2.2.4", - "@angular/platform-browser": "^2.2.4", - "@angular/platform-browser-dynamic": "^2.2.4", - "@angular/platform-server": "^2.2.4", + "@angular/common": "^2.3.1", + "@angular/compiler": "^2.3.1", + "@angular/compiler-cli": "^2.3.1", + "@angular/core": "^2.3.1", + "@angular/platform-browser": "^2.3.1", + "@angular/platform-browser-dynamic": "^2.3.1", + "@angular/platform-server": "^2.3.1", "@types/core-js": "^0.9.31", "@types/jasmine": "^2.2.32", "@types/requirejs": "^2.1.26", @@ -60,7 +60,7 @@ "awesome-typescript-loader": "^2.2.4", "branch-release": "^1.0.3", "chalk": "^1.1.3", - "codelyzer": "^2.0.0-beta.1", + "codelyzer": "^2.0.0-beta.3", "core-js": "^2.4.1", "coveralls": "^2.11.9", "css-loader": "^0.26.0", @@ -85,7 +85,7 @@ "phantomjs-prebuilt": "^2.1.7", "protractor": "^4.0.10", "raw-loader": "^0.5.1", - "rxjs": "5.0.0-beta.12", + "rxjs": "^5.0.0-rc.4", "sass-loader": "^4.0.2", "shelljs": "^0.7.0", "should": "^11.1.0", @@ -98,7 +98,7 @@ "typescript": "2.0.9", "webpack": "^2.1.0-beta.28", "webpack-dev-server": "^2.1.0-beta.12", - "zone.js": "^0.6.25" + "zone.js": "^0.7.2" }, "dependencies": { "dropkickjs": "^2.1.10", @@ -113,14 +113,14 @@ "stream-http": "^2.3.1" }, "peerDependencies": { - "@angular/common": "^2.2.4", - "@angular/compiler": "^2.2.4", - "@angular/core": "^2.2.4", - "@angular/platform-browser": "^2.2.4", - "@angular/platform-browser-dynamic": "^2.2.4", - "@angular/platform-server": "^2.2.4", + "@angular/common": "^2.3.1", + "@angular/compiler": "^2.3.1", + "@angular/core": "^2.3.1", + "@angular/platform-browser": "^2.3.1", + "@angular/platform-browser-dynamic": "^2.3.1", + "@angular/platform-server": "^2.3.1", "core-js": "^2.4.1", - "rxjs": "5.0.0-beta.12", - "zone.js": "^0.6.25" + "rxjs": "5.0.0-rc.4", + "zone.js": "^0.7.2" } } From f3a92450ecd19aac7b980256bb61fc9a6a5e4054 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Mon, 19 Dec 2016 23:13:14 +0200 Subject: [PATCH 11/11] v1.6.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 838ed9b3..bbab5615 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "redoc", "description": "Swagger-generated API Reference Documentation", - "version": "1.6.2", + "version": "1.6.3", "repository": { "type": "git", "url": "git://github.com/Rebilly/ReDoc"