From ecb88ea10db9a5a150219df666925674c3a54594 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 21 Sep 2023 23:48:14 +0300 Subject: [PATCH] Documentation: Validate json using online tool --- docs/Modders/Type-checking.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/Modders/Type-checking.md b/docs/Modders/Type-checking.md index f4fb61d76d..fe1422925d 100644 --- a/docs/Modders/Type-checking.md +++ b/docs/Modders/Type-checking.md @@ -29,3 +29,16 @@ Tada! Now Android Studio will recognize all Buildings.json files as belonging to } ] ``` + +## Using an online tool + +If you don't use any of these tools, you can check your file online using [this tool](https://www.jsonschemavalidator.net/) + +However, it can't handle the missing commas that vscode and Android Studio handle, so you may need to get your json up to spec to use it. + +The schema you want to validate against is: +```json +{ + "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/buildings.json" +} +```