summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-01-15 18:04:33 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-01-15 18:04:33 -0500
commitd029dd652fcb7390d756d92803da2dbc91f8b0de (patch)
treec7d18420ff2a75556eb946250853220f33dfb113
parent4cffd6c2c092b18940f2dd1041e418f60573a87e (diff)
downloadSMAPI-d029dd652fcb7390d756d92803da2dbc91f8b0de.tar.gz
SMAPI-d029dd652fcb7390d756d92803da2dbc91f8b0de.tar.bz2
SMAPI-d029dd652fcb7390d756d92803da2dbc91f8b0de.zip
fix JSON validator not recognizing manifest update subkeys
-rw-r--r--docs/release-notes.md1
-rw-r--r--src/SMAPI.Web/wwwroot/schemas/manifest.json2
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index aea4dbab..3be90208 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -18,6 +18,7 @@
* For the web UI:
* Added log download option.
* Fixed log parser not correctly handling multiple mods having the exact same name.
+ * Fixed JSON validator not recognizing manifest [update subkeys](https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Update_checks#Update_subkeys).
## 3.13.2
Released 05 December 2021 for Stardew Valley 1.5.5 or later.
diff --git a/src/SMAPI.Web/wwwroot/schemas/manifest.json b/src/SMAPI.Web/wwwroot/schemas/manifest.json
index 05698ba2..b6722347 100644
--- a/src/SMAPI.Web/wwwroot/schemas/manifest.json
+++ b/src/SMAPI.Web/wwwroot/schemas/manifest.json
@@ -103,7 +103,7 @@
"type": "array",
"items": {
"type": "string",
- "pattern": "^(?i)(Chucklefish:\\d+|Nexus:\\d+|GitHub:[A-Za-z0-9_\\-]+/[A-Za-z0-9_\\-]+|ModDrop:\\d+)$",
+ "pattern": "^(?i)(Chucklefish:\\d+|Nexus:\\d+|GitHub:[A-Za-z0-9_\\-]+/[A-Za-z0-9_\\-]+|ModDrop:\\d+)(?: *@ *[a-zA-Z0-9_]+ *)$",
"@errorMessages": {
"pattern": "Invalid update key; see https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Manifest#Update_checks for more info."
}