test new quest schema

(cherry picked from commit 1bd92659c3)
(cherry picked from commit a5c51b73dc)
(cherry picked from commit f7e77dd9a9)
Plogon Enjoyer 2024-08-31 18:18:09 +08:00
parent c981d57055
commit e025abb06c
2 changed files with 6 additions and 3 deletions

View File

@ -36,7 +36,7 @@ public static class Utils
if (questSchemaFile != null) if (questSchemaFile != null)
{ {
SchemaRegistry.Global.Register( 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())); JsonSchema.FromText(questSchemaFile.GetText()!.ToString()));
} }

View File

@ -1,13 +1,16 @@
{ {
"$schema": "https://json-schema.org/draft/2020-12/schema", "$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", "title": "Questionable V1",
"description": "A series of quest sequences", "description": "A series of quest sequences",
"type": "object", "type": "object",
"properties": { "properties": {
"$schema": { "$schema": {
"type": "string", "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": { "Author": {
"description": "Author of the quest sequence", "description": "Author of the quest sequence",