mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-27 11:03:43 +03:00
35 lines
1.5 KiB
HTML
35 lines
1.5 KiB
HTML
<span *ngIf="isTrivial" class="param-wrap">
|
|
<span class="param-type param-type-trivial {{type}}"
|
|
[ngClass]="{'with-hint': _displayTypeHint}" title="{{_displayTypeHint}}">{{_displayType}}</span>
|
|
</span>
|
|
<div *ngIf="!isTrivial" class="params-wrap" [ngClass]="{'params-array': isArray}">
|
|
<div *ngFor="#prop of data.properties" class="param-wrap">
|
|
<div class="param" [ngClass]="{'discriminator': prop.isDiscriminator}">
|
|
<div class="param-name">
|
|
<span>{{prop._name}}</span>
|
|
</div>
|
|
<div class="param-info">
|
|
<div>
|
|
<span class="param-type {{prop.type}}" [ngClass]="{'with-hint': prop._displayTypeHint}"
|
|
title="{{prop._displayTypeHint}}"> {{prop._displayType}} {{prop._displayFormat}}</span>
|
|
<span *ngIf="prop.required" class="param-required">Required</span>
|
|
</div>
|
|
<div class="param-description" innerHtml="{{prop.description | marked}}"></div>
|
|
<div class="discriminator-info" *ngIf="prop.isDiscriminator"> This field value determines the exact schema: </div>
|
|
</div>
|
|
</div>
|
|
<div class="param-schema" [ngClass]="{'param-array': prop._isArray}" *ngIf="prop._pointer">
|
|
<json-schema pointer="{{prop._pointer}}" [isArray]='prop._isArray'>
|
|
</json-schema>
|
|
</div>
|
|
</div>
|
|
<div *ngIf="data.derived.length" class="param-wrap">
|
|
<tabs>
|
|
<tab *ngFor="#derived of data.derived" tabTitle="{{derived.name}}">
|
|
<json-schema pointer="{{derived.$ref}}" [final]="derived.final">
|
|
</json-schema>
|
|
</tab>
|
|
</tabs>
|
|
</div>
|
|
</div>
|