summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-12-04 22:41:59 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-12-04 22:41:59 -0500
commit0f37c0f92da5fb6fcf9e4317a1b4c8d3f4df8010 (patch)
treef2efd0df5a42b24d324e5b147e56e9237985b9e5
parentcc35dbdb3d1fe0a82557857a72d842f1217812c2 (diff)
downloadSMAPI-0f37c0f92da5fb6fcf9e4317a1b4c8d3f4df8010.tar.gz
SMAPI-0f37c0f92da5fb6fcf9e4317a1b4c8d3f4df8010.tar.bz2
SMAPI-0f37c0f92da5fb6fcf9e4317a1b4c8d3f4df8010.zip
update JSON validator for Content Patcher's new .fnt support
-rw-r--r--docs/release-notes.md3
-rw-r--r--src/SMAPI.Web/wwwroot/schemas/content-patcher.json6
2 files changed, 6 insertions, 3 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index 4fc6a524..0f6fba33 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -9,6 +9,9 @@
* For SMAPI maintainers:
* Added a new [scripted release package process](technical/smapi.md), which removes the need to compile SMAPI on multiple platforms and manually combine them.
+* For the web UI:
+ * Updated the JSON validator/schema for `.fnt` support in Content Patcher 1.24.0.
+
## 3.13.1
Released 30 November 2021 for Stardew Valley 1.5.5 or later.
diff --git a/src/SMAPI.Web/wwwroot/schemas/content-patcher.json b/src/SMAPI.Web/wwwroot/schemas/content-patcher.json
index d39574ef..6b80f260 100644
--- a/src/SMAPI.Web/wwwroot/schemas/content-patcher.json
+++ b/src/SMAPI.Web/wwwroot/schemas/content-patcher.json
@@ -214,7 +214,7 @@
},
"FromFile": {
"title": "Source file",
- "description": "The relative file path in your content pack folder to load instead (like 'assets/dinosaur.png'), or multiple comma-delimited values. This can be a .json (data), .png (image), .tbin or .tmx (map), or .xnb file. This field supports tokens and capitalization doesn't matter.",
+ "description": "The relative file path in your content pack folder to load instead (like 'assets/dinosaur.png'), or multiple comma-delimited values. This can be a .fnt (font), .json (data), .png (image), .tbin or .tmx (map), or .xnb file. This field supports tokens and capitalization doesn't matter.",
"type": "string",
"allOf": [
{
@@ -223,12 +223,12 @@
}
},
{
- "pattern": "\\.(json|png|tbin|tmx|xnb) *$"
+ "pattern": "\\.(fnt|json|png|tbin|tmx|xnb) *$"
}
],
"@errorMessages": {
"allOf:indexes: 0": "Invalid value; must not contain directory climbing (like '../').",
- "allOf:indexes: 1": "Invalid value; must be a file path ending with .json, .png, .tbin, .tmx, or .xnb."
+ "allOf:indexes: 1": "Invalid value; must be a file path ending with .fnt, .json, .png, .tbin, .tmx, or .xnb."
}
},
"FromArea": {