mirror of
https://github.com/unclshura/BlazorOpenApi.git
synced 2025-12-21 09:51:53 +00:00
Removed `@using Microsoft.OpenApi.Models` and related namespaces from various Razor component files to streamline OpenAPI model usage. Updated null checks to include opening braces for improved readability. Modified `_Imports.razor` to include new namespaces `BlazorOpenApi` and `BlazorOpenApi.Controls`, while removing outdated OpenAPI imports.
29 lines
647 B
Plaintext
29 lines
647 B
Plaintext
@if (Value != null)
|
|
{
|
|
<div class="descriminator">
|
|
<Text Value="@Value.PropertyName" />
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>From</th>
|
|
<th>To</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Value.Mapping)
|
|
{
|
|
<tr>
|
|
<td>@item.Key</td>
|
|
<td>@item.Value</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
}
|
|
|
|
@code {
|
|
[Parameter]
|
|
public OpenApiDiscriminator? Value { get; set; }
|
|
}
|