Skip to content
This repository was archived by the owner on Jun 18, 2023. It is now read-only.

Commit 04b1de7

Browse files
Thomas Letschtimonback
authored andcommitted
Show object ref for array schema properties
1 parent 18cf2fd commit 04b1de7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/app/schemas/schema/schema.component.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
<span class="required" *ngIf="schema.required?.includes(property.key)">*</span>
77
</td>
88
<td>
9-
<span class="type" *ngIf="property.value.type == 'array'">{{ property.value.items.type }}[]</span>
9+
<ng-container *ngIf="property.value.items">
10+
<span class="type" *ngIf="property.value.items.type && !property.value.items.anchorUrl">{{ property.value.items.type }}[]</span>
11+
<span class="type" *ngIf="property.value.items.anchorUrl">
12+
<a [href]="property.value.items.anchorUrl">{{ property.value.items.name }}[]</a>
13+
</span>
14+
</ng-container>
1015
<span class="type" *ngIf="property.value.type != 'array'">{{ property.value.type }}</span>
1116
<span class="type" *ngIf="property.value.name">
1217
<a [href]="property.value.anchorUrl">{{ property.value.name }}</a>

0 commit comments

Comments
 (0)