Release v0.6.6

This commit is contained in:
Roman Hotsiy 2016-03-13 02:41:17 +02:00
parent 0f2ac8cdbc
commit 062ae34c15
4 changed files with 8 additions and 9 deletions

9
dist/redoc.js vendored
View File

@ -7725,7 +7725,7 @@ $__System.register('b', ['5', '6', '7', '8', '9', 'e', 'c', 'd'], function (_exp
ParamsList = RedocComponent({
selector: 'params-list',
template: '\n <h2 class="param-list-header" *ngIf="data.params.length"> Parameters </h2>\n <template ngFor [ngForOf]="data.params" #paramType="$implicit">\n <header class="paramType"> {{paramType.place}} Parameters </header>\n <div class="params-wrap">\n <div *ngFor="#param of paramType.params" class="param">\n <div class="param-name">\n <span class="param-name-content"> {{param.name}} </span>\n </div>\n <div class="param-info">\n <div>\n <span class="param-type {{param.type}}" [ngClass]="{\'with-hint\': param._displayTypeHint}"\n title="{{param._displayTypeHint}}"> {{param._displayType}} {{param._displayFormat}}</span>\n <span *ngIf="param.required" class="param-required">Required</span>\n <div *ngIf="param.enum" class="param-enum">\n <span *ngFor="#enumItem of param.enum" class="enum-value {{enumItem.type}}"> {{enumItem.val | json}} </span>\n </div>\n </div>\n <div class="param-description" innerHtml="{{param.description | marked}}"></div>\n </div>\n </div>\n </div>\n </template>\n\n <div *ngIf="data.bodyParam">\n <h2 class="param-list-header" *ngIf="data.bodyParam"> Request Body </h2>\n\n <div class="body-param-description" innerHtml="{{data.bodyParam.description | marked}}"></div>\n <div>\n <json-schema-lazy [auto]="true" pointer="{{data.bodyParam.pointer}}/schema">\n </json-schema-lazy>\n </div>\n </div>\n ',
styles: ['\n .param-list-header{border-bottom:1px solid #999;font-size:18px;padding:0.2em 0;margin:0.5em 0;color:#253137;font-weight:normal}.param-schema{padding-left:12.5px;border-left:1px solid #7D97CE}.param-wrap{position:relative}.param-schema:before{content:"";position:absolute;left:13.5px;top:20px;bottom:0;border-left:1px solid #7D97CE}.param-name{flex-grow:0;-ms-flex-grow:0;display:inline-block;font-size:14px;padding:10px 0 10px 0;font-weight:bold;box-sizing:border-box;line-height:20px;border-left:1px solid #7D97CE;white-space:nowrap;position:relative}.param-name-content{padding-right:25px;display:inline-block}.param-info{flex-grow:1;-ms-flex-grow:1;padding:10px 0;box-sizing:border-box;border-bottom:1px solid #ccc;display:inline-block}.param{display:flex;display:-ms-flexbox}.param-required{color:red;font-weight:bold;font-size:12px;line-height:20px;vertical-align:middle}.param-type{color:#999;font-size:12px;line-height:20px;vertical-align:middle;font-weight:bold}.param-type.array:before{content:"Array of ";color:#999}.param-type.string,.enum-value.string{color:rgba(0,80,0,0.7)}.param-type.integer,.param-type.number,.enum-value.number{color:rgba(74,139,179,0.8)}.param-type.object{color:rgba(0,50,159,0.7)}.param-type.boolean,.enum-value.boolean{color:firebrick}.param-type.with-hint{background-color:rgba(0,50,159,0.1);padding:0.2em 0;font-size:0.85em;border-radius:3px;cursor:help}.param-type.with-hint:before,.param-type.with-hint:after{content:"\\00a0"}.param-type-trivial{margin:10px 10px 0;display:inline-block}.param-name>span:before{content:"";display:inline-block;width:7px;height:7px;background-color:#7D97CE;margin:0 10px;vertical-align:middle}.param-name>span:after{content:"";position:absolute;border-top:1px solid #7D97CE;width:10px;left:0;top:20px}.param-wrap:first-of-type>.param>.param-name:before{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.param-wrap:last-of-type>.param>.param-name{position:static}.param-wrap:last-of-type>.param>.param-name:after{content:"";display:block;position:absolute;left:-1px;border-left:2px solid #fff;top:21px;background-color:white;bottom:0}.param-wrap:last-of-type>.param-schema{border-left-color:transparent}.param-schema .param-wrap:first-of-type .param-name:before{display:none !important}.param-enum{color:#666}.param-enum:before{content:"Values: {"}.param-enum:after{content:"}"}.param-enum>.enum-value:after{content:", "}.param-enum>.enum-value:last-of-type:after{content:none}header.paramType{margin:10px 0;text-transform:capitalize}.params-wrap{display:table;width:100%}.param-name{display:table-cell;vertical-align:top}.param-info{display:table-cell;width:100%}.param{display:table-row}.param:last-of-type>.param-name{border-left:0}.param:last-of-type>.param-name:after{content:"";display:block;position:absolute;left:0;border-left:1px solid #7D97CE;height:21px;background-color:white;top:0}.param:first-of-type .param-name:after{content:"";display:block;position:absolute;left:-1px;border-left:2px solid #fff;height:20px;background-color:white;top:0}\n '],
styles: ['\n .param-list-header{border-bottom:1px solid #999;font-size:18px;padding:0.2em 0;margin:0.5em 0;color:#253137;font-weight:normal}.param-schema{padding-left:12.5px;border-left:1px solid #7D97CE}.param-wrap{position:relative}.param-schema:before{content:"";position:absolute;left:13.5px;top:20px;bottom:0;border-left:1px solid #7D97CE}.param-name{flex-grow:0;-ms-flex-grow:0;display:inline-block;font-size:14px;padding:10px 0 10px 0;font-weight:bold;box-sizing:border-box;line-height:20px;border-left:1px solid #7D97CE;white-space:nowrap;position:relative}.param-name-content{padding-right:25px;display:inline-block}.param-info{flex-grow:1;-ms-flex-grow:1;padding:10px 0;box-sizing:border-box;border-bottom:1px solid #ccc;display:inline-block}.param{display:flex;display:-ms-flexbox}.param-required{color:red;font-weight:bold;font-size:12px;line-height:20px;vertical-align:middle}.param-type{color:#999;font-size:12px;line-height:20px;vertical-align:middle;font-weight:bold}.param-type.array:before{content:"Array of ";color:#999}.param-type.string,.enum-value.string{color:rgba(0,80,0,0.7)}.param-type.integer,.param-type.number,.enum-value.number{color:rgba(74,139,179,0.8)}.param-type.object{color:rgba(0,50,159,0.7)}.param-type.boolean,.enum-value.boolean{color:firebrick}.param-type.with-hint{display:inline-block;margin-bottom:0.4em;border-bottom:1px dotted rgba(38,50,56,0.4);padding:0;cursor:help}.param-type-trivial{margin:10px 10px 0;display:inline-block}.param-name>span:before{content:"";display:inline-block;width:7px;height:7px;background-color:#7D97CE;margin:0 10px;vertical-align:middle}.param-name>span:after{content:"";position:absolute;border-top:1px solid #7D97CE;width:10px;left:0;top:20px}.param-wrap:first-of-type>.param>.param-name:before{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.param-wrap:last-of-type>.param>.param-name{position:static}.param-wrap:last-of-type>.param>.param-name:after{content:"";display:block;position:absolute;left:-1px;border-left:2px solid #fff;top:21px;background-color:white;bottom:0}.param-wrap:last-of-type>.param-schema{border-left-color:transparent}.param-schema .param-wrap:first-of-type .param-name:before{display:none !important}.param-enum{color:#666}.param-enum:before{content:"Values: {"}.param-enum:after{content:"}"}.param-enum>.enum-value:after{content:", "}.param-enum>.enum-value:last-of-type:after{content:none}header.paramType{margin:10px 0;text-transform:capitalize}.params-wrap{display:table;width:100%}.param-name{display:table-cell;vertical-align:top}.param-info{display:table-cell;width:100%}.param{display:table-row}.param:last-of-type>.param-name{border-left:0}.param:last-of-type>.param-name:after{content:"";display:block;position:absolute;left:0;border-left:1px solid #7D97CE;height:21px;background-color:white;top:0}.param:first-of-type .param-name:after{content:"";display:block;position:absolute;left:-1px;border-left:2px solid #fff;height:20px;background-color:white;top:0}\n '],
directives: [JsonSchema, JsonSchemaLazy]
})(ParamsList) || ParamsList;
return ParamsList;
@ -56828,7 +56828,6 @@ $__System.register('c', ['5', '6', '7', '8', '9', '10', '11', '15', '96', 'a1',
if (!schema.properties) {
this.isTrivial = true;
this._displayType = schema.type;
this._displayTypeHint = 'This field may contain data of any type';
return;
}
@ -56900,13 +56899,13 @@ $__System.register('c', ['5', '6', '7', '8', '9', '10', '11', '15', '96', 'a1',
propData.format = itemFormat;
propData._isArray = true;
propData.type = 'array ' + propData.items.type;
} else if (propData.type === 'object') {
} else if (propData.type === 'object' && propData.properties) {
propData._displayType = propData.title || 'object';
} else if (!propData.type) {
propData._displayType = '< * >';
propData._displayTypeHint = 'This field may contain data of any type';
} else {
// here we are sure that property has simple type
// here we are sure that property has simple type (integer, string, object withou properties)
// delete pointer for simple types to not show it as subschema
if (propData._pointer) {
propData._pointer = undefined;
@ -56930,7 +56929,7 @@ $__System.register('c', ['5', '6', '7', '8', '9', '10', '11', '15', '96', 'a1',
JsonSchema = RedocComponent({
selector: 'json-schema',
template: '\n <span *ngIf="isTrivial" class="param-wrap">\n <span class="param-type param-type-trivial {{type}}"\n [ngClass]="{\'with-hint\': _displayTypeHint}" title="{{_displayTypeHint}}">{{_displayType}}</span>\n </span>\n <div *ngIf="!isTrivial" class="params-wrap" [ngClass]="{\'params-array\': isArray}">\n <div *ngFor="#prop of data.properties" class="param-wrap">\n <div class="param" [ngClass]="{\'discriminator\': prop.isDiscriminator}">\n <div class="param-name">\n <span class="param-name-content">{{prop._name}}</span>\n </div>\n <div class="param-info">\n <div>\n <span class="param-type {{prop.type}}" [ngClass]="{\'with-hint\': prop._displayTypeHint}"\n title="{{prop._displayTypeHint}}"> {{prop._displayType}} {{prop._displayFormat}}</span>\n <span *ngIf="prop.required" class="param-required">Required</span>\n <div *ngIf="prop.enum" class="param-enum">\n <span *ngFor="#enumItem of prop.enum" class="enum-value {{enumItem.type}}"> {{enumItem.val | json}} </span>\n </div>\n </div>\n <div class="param-description" innerHtml="{{prop.description | marked}}"></div>\n <div class="discriminator-info" *ngIf="prop.isDiscriminator"> This field value determines the exact schema: </div>\n </div>\n </div>\n <div class="param-schema" [ngClass]="{\'param-array\': prop._isArray}" *ngIf="prop._pointer">\n <json-schema pointer="{{prop._pointer}}" [isArray]=\'prop._isArray\'>\n </json-schema>\n </div>\n </div>\n <div *ngIf="data.derived.length" class="param-wrap">\n <tabs>\n <tab *ngFor="#derived of data.derived" tabTitle="{{derived.name}}">\n <json-schema pointer="{{derived.$ref}}" [final]="derived.final">\n </json-schema>\n </tab>\n </tabs>\n </div>\n </div>\n ',
styles: ['\n .param-schema{padding-left:12.5px;border-left:1px solid #7D97CE}.param-wrap{position:relative}.param-schema:before{content:"";position:absolute;left:13.5px;top:20px;bottom:0;border-left:1px solid #7D97CE}.param-name{flex-grow:0;-ms-flex-grow:0;display:inline-block;font-size:14px;padding:10px 0 10px 0;font-weight:bold;box-sizing:border-box;line-height:20px;border-left:1px solid #7D97CE;white-space:nowrap;position:relative}.param-name-content{padding-right:25px;display:inline-block}.param-info{flex-grow:1;-ms-flex-grow:1;padding:10px 0;box-sizing:border-box;border-bottom:1px solid #ccc;display:inline-block}.param{display:flex;display:-ms-flexbox}.param-required{color:red;font-weight:bold;font-size:12px;line-height:20px;vertical-align:middle}.param-type{color:#999;font-size:12px;line-height:20px;vertical-align:middle;font-weight:bold}.param-type.array:before{content:"Array of ";color:#999}.param-type.string,.enum-value.string{color:rgba(0,80,0,0.7)}.param-type.integer,.param-type.number,.enum-value.number{color:rgba(74,139,179,0.8)}.param-type.object{color:rgba(0,50,159,0.7)}.param-type.boolean,.enum-value.boolean{color:firebrick}.param-type.with-hint{background-color:rgba(0,50,159,0.1);padding:0.2em 0;font-size:0.85em;border-radius:3px;cursor:help}.param-type.with-hint:before,.param-type.with-hint:after{content:"\\00a0"}.param-type-trivial{margin:10px 10px 0;display:inline-block}.param-name>span:before{content:"";display:inline-block;width:7px;height:7px;background-color:#7D97CE;margin:0 10px;vertical-align:middle}.param-name>span:after{content:"";position:absolute;border-top:1px solid #7D97CE;width:10px;left:0;top:20px}.param-wrap:first-of-type>.param>.param-name:before{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.param-wrap:last-of-type>.param>.param-name{position:static}.param-wrap:last-of-type>.param>.param-name:after{content:"";display:block;position:absolute;left:-1px;border-left:2px solid #fff;top:21px;background-color:white;bottom:0}.param-wrap:last-of-type>.param-schema{border-left-color:transparent}.param-schema .param-wrap:first-of-type .param-name:before{display:none !important}.param-enum{color:#666}.param-enum:before{content:"Values: {"}.param-enum:after{content:"}"}.param-enum>.enum-value:after{content:", "}.param-enum>.enum-value:last-of-type:after{content:none}:host{display:block}.params-wrap.params-array:before,.params-wrap.params-array:after{display:block;font-weight:bold;color:#999;font-size:12px;line-height:1.5}.params-wrap.params-array:after{content:"]"}.params-wrap.params-array:before{content:"Array [";padding-top:1em}.params-wrap.params-array{padding-left:10px}.param-schema.param-array:before{bottom:9px;width:10px;border-left-style:dashed;border-bottom:1px dashed #7D97CE}.params-wrap.params-array>.param-wrap:first-of-type>.param>.param-name:after{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.params-wrap>.param>.param-schema.param-array{border-left-color:transparent}.param.discriminator>div{padding-bottom:0;border-bottom:0}.discriminator-info{font-weight:bold}:host tabs{display:block;border-left:1px solid #7D97CE}:host tabs li{margin:0.2em 0.5em 0.2em 0;font-size:14px;border:0;color:white;padding:0 15px;border-radius:10px;background-color:#8A9094}:host tabs li:last-of-type{margin:0}:host tabs li.active{background-color:#00329F}tabs .params-wrap>.param-wrap:first-of-type .param-name{border-left:0}tabs .params-wrap>.param-wrap:first-of-type .param-name:before{display:none}\n '],
styles: ['\n .param-schema{padding-left:12.5px;border-left:1px solid #7D97CE}.param-wrap{position:relative}.param-schema:before{content:"";position:absolute;left:13.5px;top:20px;bottom:0;border-left:1px solid #7D97CE}.param-name{flex-grow:0;-ms-flex-grow:0;display:inline-block;font-size:14px;padding:10px 0 10px 0;font-weight:bold;box-sizing:border-box;line-height:20px;border-left:1px solid #7D97CE;white-space:nowrap;position:relative}.param-name-content{padding-right:25px;display:inline-block}.param-info{flex-grow:1;-ms-flex-grow:1;padding:10px 0;box-sizing:border-box;border-bottom:1px solid #ccc;display:inline-block}.param{display:flex;display:-ms-flexbox}.param-required{color:red;font-weight:bold;font-size:12px;line-height:20px;vertical-align:middle}.param-type{color:#999;font-size:12px;line-height:20px;vertical-align:middle;font-weight:bold}.param-type.array:before{content:"Array of ";color:#999}.param-type.string,.enum-value.string{color:rgba(0,80,0,0.7)}.param-type.integer,.param-type.number,.enum-value.number{color:rgba(74,139,179,0.8)}.param-type.object{color:rgba(0,50,159,0.7)}.param-type.boolean,.enum-value.boolean{color:firebrick}.param-type.with-hint{display:inline-block;margin-bottom:0.4em;border-bottom:1px dotted rgba(38,50,56,0.4);padding:0;cursor:help}.param-type-trivial{margin:10px 10px 0;display:inline-block}.param-name>span:before{content:"";display:inline-block;width:7px;height:7px;background-color:#7D97CE;margin:0 10px;vertical-align:middle}.param-name>span:after{content:"";position:absolute;border-top:1px solid #7D97CE;width:10px;left:0;top:20px}.param-wrap:first-of-type>.param>.param-name:before{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.param-wrap:last-of-type>.param>.param-name{position:static}.param-wrap:last-of-type>.param>.param-name:after{content:"";display:block;position:absolute;left:-1px;border-left:2px solid #fff;top:21px;background-color:white;bottom:0}.param-wrap:last-of-type>.param-schema{border-left-color:transparent}.param-schema .param-wrap:first-of-type .param-name:before{display:none !important}.param-enum{color:#666}.param-enum:before{content:"Values: {"}.param-enum:after{content:"}"}.param-enum>.enum-value:after{content:", "}.param-enum>.enum-value:last-of-type:after{content:none}:host{display:block}.params-wrap.params-array:before,.params-wrap.params-array:after{display:block;font-weight:bold;color:#999;font-size:12px;line-height:1.5}.params-wrap.params-array:after{content:"]"}.params-wrap.params-array:before{content:"Array [";padding-top:1em}.params-wrap.params-array{padding-left:10px}.param-schema.param-array:before{bottom:9px;width:10px;border-left-style:dashed;border-bottom:1px dashed #7D97CE}.params-wrap.params-array>.param-wrap:first-of-type>.param>.param-name:after{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.params-wrap>.param>.param-schema.param-array{border-left-color:transparent}.param.discriminator>div{padding-bottom:0;border-bottom:0}.discriminator-info{font-weight:bold}:host tabs{display:block;border-left:1px solid #7D97CE}:host tabs li{margin:0.2em 0.5em 0.2em 0;font-size:14px;border:0;color:white;padding:0 15px;border-radius:10px;background-color:#8A9094}:host tabs li:last-of-type{margin:0}:host tabs li.active{background-color:#00329F}tabs .params-wrap>.param-wrap:first-of-type .param-name{border-left:0}tabs .params-wrap>.param-wrap:first-of-type .param-name:before{display:none}\n '],
directives: [JsonSchema, Tabs, Tab],
inputs: ['isArray', 'final']
})(JsonSchema) || JsonSchema;

2
dist/redoc.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/redoc.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long