diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-08-04 16:49:16 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-14 19:00:46 -0400 |
commit | 1b9ce5e64ff248a9cf616f1b7fe8a39a74bd8baa (patch) | |
tree | 0e1b33f3de08cf30c17cc9d391442c77536bb2a7 | |
parent | 3ba567eaddeaa0bb2bdd749b56e0601d1cf65a25 (diff) | |
download | SMAPI-1b9ce5e64ff248a9cf616f1b7fe8a39a74bd8baa.tar.gz SMAPI-1b9ce5e64ff248a9cf616f1b7fe8a39a74bd8baa.tar.bz2 SMAPI-1b9ce5e64ff248a9cf616f1b7fe8a39a74bd8baa.zip |
format displayed JSON (#654)
-rw-r--r-- | src/SMAPI.Web/Controllers/JsonValidatorController.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Controllers/JsonValidatorController.cs b/src/SMAPI.Web/Controllers/JsonValidatorController.cs index 9d1685ac..37393a98 100644 --- a/src/SMAPI.Web/Controllers/JsonValidatorController.cs +++ b/src/SMAPI.Web/Controllers/JsonValidatorController.cs @@ -97,6 +97,9 @@ namespace StardewModdingAPI.Web.Controllers return this.View("Index", result.AddErrors(new JsonValidatorErrorModel(ex.LineNumber, ex.Path, ex.Message))); } + // format JSON + result.SetContent(parsed.ToString(Formatting.Indented)); + // skip if no schema selected if (schemaName == "none") return this.View("Index", result); |