Skip to content

Commit

Permalink
feat(ui): display primitive type info
Browse files Browse the repository at this point in the history
Feature request.
Only properties has info displayed

Refs #378
  • Loading branch information
aerfus committed Jan 1, 2024
1 parent 43116a2 commit 34b5959
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<!-- SPDX-License-Identifier: Apache-2.0 -->
<table class="schema">
<tbody>
<!-- Primitive types -->
<tr *ngIf="schema.type !== 'object'">
<ng-container
[ngTemplateOutlet]="valueContent"
[ngTemplateOutletContext]="{ value: schema }"
>
</ng-container>
</tr>
<!-- Objects -->
<tr *ngFor="let property of schema?.properties | keyvalue">
<td class="key">
{{ property.key }}
Expand Down

0 comments on commit 34b5959

Please sign in to comment.