@using StardewModdingAPI.Web.ViewModels.JsonValidator @model JsonValidatorModel @{ ViewData["Title"] = "JSON validator"; string curPageUrl = new Uri(new Uri(Model.SectionUrl), $"{Model.SchemaName}/{Model.PasteID}").ToString(); string newUploadUrl = Model.SchemaName != null ? new Uri(new Uri(Model.SectionUrl), Model.SchemaName).ToString() : Model.SectionUrl; } @section Head { @if (Model.PasteID != null) { } } @* upload result banner *@ @if (Model.UploadError != null) {
} else if (Model.ParseError != null) { } else if (Model.PasteID != null) { } @* upload new file *@ @if (Model.Content == null) {See format documentation.
} @if (Model.Errors.Any()) {Line | Field | Error |
---|---|---|
@error.Line | @error.Path | @error.Message |
No errors found.
} }@Model.Content