From 6fe30badb28ac40150b7282aad148d796edc7eb8 Mon Sep 17 00:00:00 2001 From: Plogon Enjoyer Date: Sat, 31 Aug 2024 18:18:09 +0800 Subject: [PATCH] test new quest schema (cherry picked from commit 1bd92659c38d382ab8e2f3e514a8890f96940e19) (cherry picked from commit a5c51b73dce304a23777a78382620994247a18f2) (cherry picked from commit f7e77dd9a9234e7b9decf2d17d4c1f8ce455c8e2) --- QuestPathGenerator/Utils.cs | 2 +- QuestPaths/quest-v1.json | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/QuestPathGenerator/Utils.cs b/QuestPathGenerator/Utils.cs index 4a08c9e0..bbf460c6 100644 --- a/QuestPathGenerator/Utils.cs +++ b/QuestPathGenerator/Utils.cs @@ -36,7 +36,7 @@ public static class Utils if (questSchemaFile != null) { SchemaRegistry.Global.Register( - new Uri("https://git.carvel.li/liza/Questionable/raw/branch/master/QuestPaths/quest-v1.json"), + new Uri("https://git.carvel.li/plogon_enjoyer/Questionable/raw/branch/temp/QuestPaths/quest-v1.json"), JsonSchema.FromText(questSchemaFile.GetText()!.ToString())); } diff --git a/QuestPaths/quest-v1.json b/QuestPaths/quest-v1.json index f3e0c96a..ad47b246 100644 --- a/QuestPaths/quest-v1.json +++ b/QuestPaths/quest-v1.json @@ -1,13 +1,16 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://git.carvel.li/liza/Questionable/raw/branch/master/QuestPaths/quest-v1.json", + "$id": "https://git.carvel.li/plogon_enjoyer/Questionable/raw/branch/temp/QuestPaths/quest-v1.json", "title": "Questionable V1", "description": "A series of quest sequences", "type": "object", "properties": { "$schema": { "type": "string", - "const": "https://git.carvel.li/liza/Questionable/raw/branch/master/QuestPaths/quest-v1.json" + "enum":[ + "https://git.carvel.li/liza/Questionable/raw/branch/master/QuestPaths/quest-v1.json", + "https://git.carvel.li/plogon_enjoyer/Questionable/raw/branch/temp/QuestPaths/quest-v1.json" + ] }, "Author": { "description": "Author of the quest sequence",