redoc/lib/components/JsonSchema/json-schema.html
2015-12-14 17:20:40 +02:00

23 lines
984 B
HTML

<small *ngIf="errorMessage">{{errorMessage}}</small>
<span *ngIf="isTrivial" class="param-type param-type-trivial" [ngClass]="type">{{_displayType}}</span>
<div *ngIf="!isTrivial" class="params-wrap" [ngClass]="{'params-array': isArray}">
<div *ngFor="#prop of data.properties" class="param-wrap">
<div class="param">
<div class="param-name">
<span>{{prop._name}}</span>
</div>
<div class="param-info">
<div>
<span class="param-type" [ngClass]="prop.type">{{prop._displayType}} {{prop._displayFormat}}</span>
<span *ngIf="prop.isRequired" class="param-required">Required</span>
</div>
<div class="param-description" innerHtml="{{prop.description | marked}}"></div>
</div>
</div>
<div class="param-schema" [ngClass]="{'param-array': prop._isArray}" *ngIf="prop._pointer">
<json-schema pointer="{{prop._pointer}}" [is-array]='prop._isArray'>
</json-schema>
</div>
</div>
</div>