Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Elastic.ApiExplorer/Operations/OperationView.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<span class="beta-badge">Beta</span>
}
@{
var versionInfo = operation.Extensions?.TryGetValue("x-state", out var stateValue) == true && stateValue is System.Text.Json.Nodes.JsonNode stateNode ? stateNode.ToString() : null;
var versionInfo = (operation.Extensions?.TryGetValue("x-state", out var stateValue) == true && stateValue is JsonNodeExtension stateExt) ? stateExt.Node.GetValue<string>() : null;
}
@if (!string.IsNullOrEmpty(versionInfo))
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elastic.ApiExplorer/Shared/_PropertyItem.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
}
@if (ctx.ShowVersionInfo)
{
var propVersionInfo = propSchema.Extensions?.TryGetValue("x-state", out var propStateValue) == true && propStateValue is System.Text.Json.Nodes.JsonNode propStateNode ? propStateNode.ToString() : null;
var propVersionInfo = (propSchema.Extensions?.TryGetValue("x-state", out var propStateValue) == true && propStateValue is JsonNodeExtension propStateExt) ? propStateExt.Node.GetValue<string>() : null;
if (!string.IsNullOrEmpty(propVersionInfo))
{
<span class="version-badge">@propVersionInfo</span>
Expand Down
Loading