Skip to content

Commit

Permalink
feat(ui): show schema example also in schema component (springwolf#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
timonback authored Mar 1, 2024
1 parent 70ac198 commit 2b420d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,21 +116,19 @@ <h4>
}}</a>
</h4>
<app-schema *ngIf="headers" [schema]="headers"></app-schema>
<div class="flex-column">
<app-json [data]="headersExample?.rawValue"></app-json>
</div>
</mat-tab>
<mat-tab label="Operation Bindings">
<div *ngIf="operation.protocol && operation.message.bindings">
<app-json
*ngIf="operation.protocol && operation.message.bindings"
*ngIf="operation.protocol && operation.bindings"
[data]="operation.bindings[operation.protocol]"
></app-json>
</div>
</mat-tab>
<mat-tab label="Message Bindings">
<div *ngIf="operation.protocol && operation.message.rawBindings">
<app-json
*ngIf="operation.protocol && operation.message"
[data]="operation.message.rawBindings[operation.protocol]"
></app-json>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!-- SPDX-License-Identifier: Apache-2.0 -->
<div>
<app-json [data]="schema.example.rawValue"></app-json>
</div>
<table class="schema">
<tbody>
<!-- Primitive types -->
Expand Down

0 comments on commit 2b420d1

Please sign in to comment.