2016-01-23 17:01:10 +03:00
|
|
|
<span *ngIf="isTrivial" class="param-wrap">
|
|
|
|
<span class="param-type param-type-trivial {{type}}"
|
|
|
|
[ngClass]="{'with-hint': _displayTypeHint}" title="{{_displayTypeHint}}">{{_displayType}}</span>
|
|
|
|
</span>
|
2016-03-09 01:27:19 +03:00
|
|
|
<table *ngIf="!isTrivial" class="params-wrap" [ngClass]="{'params-array': isArray}">
|
|
|
|
<template ngFor [ngForOf]="data.properties" #prop="$implicit">
|
|
|
|
<tr class="param" [ngClass]="{'discriminator': prop.isDiscriminator, 'complex': prop._pointer}">
|
|
|
|
<td class="param-name">
|
2016-02-06 19:02:10 +03:00
|
|
|
<span class="param-name-content">{{prop._name}}</span>
|
2016-03-09 01:27:19 +03:00
|
|
|
</td>
|
|
|
|
<td class="param-info">
|
2015-11-19 00:23:18 +03:00
|
|
|
<div>
|
2016-01-23 17:01:10 +03:00
|
|
|
<span class="param-type {{prop.type}}" [ngClass]="{'with-hint': prop._displayTypeHint}"
|
2016-03-17 02:27:09 +03:00
|
|
|
title="{{prop._displayTypeHint}}"> {{prop._displayType}} {{prop._displayFormat}}
|
|
|
|
<span class="param-range" *ngIf="prop._range"> {{prop._range}} </span>
|
|
|
|
</span>
|
2016-02-04 12:49:00 +03:00
|
|
|
<span *ngIf="prop.required" class="param-required">Required</span>
|
2016-02-06 18:00:31 +03:00
|
|
|
<div *ngIf="prop.enum" class="param-enum">
|
|
|
|
<span *ngFor="#enumItem of prop.enum" class="enum-value {{enumItem.type}}"> {{enumItem.val | json}} </span>
|
|
|
|
</div>
|
2015-11-19 00:23:18 +03:00
|
|
|
</div>
|
2015-12-14 18:20:40 +03:00
|
|
|
<div class="param-description" innerHtml="{{prop.description | marked}}"></div>
|
2016-01-10 18:29:35 +03:00
|
|
|
<div class="discriminator-info" *ngIf="prop.isDiscriminator"> This field value determines the exact schema: </div>
|
2016-03-09 01:27:19 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="param-schema" [ngClass]="{'param-array': prop._isArray}" *ngIf="prop._pointer">
|
|
|
|
<td colspan="2">
|
|
|
|
<json-schema pointer="{{prop._pointer}}" [isArray]='prop._isArray' class="nested-schema">
|
2016-01-10 18:29:35 +03:00
|
|
|
</json-schema>
|
2016-03-09 01:27:19 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
<tr *ngIf="data.derived.length" class="param-wrap discriminator-wrap">
|
|
|
|
<td colspan="2">
|
|
|
|
<tabs>
|
|
|
|
<tab *ngFor="#derived of data.derived" tabTitle="{{derived.name}}">
|
|
|
|
<json-schema pointer="{{derived.$ref}}" [final]="derived.final" class="discriminator-part">
|
|
|
|
</json-schema>
|
|
|
|
</tab>
|
|
|
|
</tabs>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|