Skip to content

Commit 9000ca7

Browse files
committed
fix Content Patcher schema not recognizing null in some fields that allow it
1 parent 62dcccf commit 9000ca7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/release-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* For the web UI:
1515
* Fixed the log parser showing the wrong game folder path if the `Mods` folder path was customized.
1616
* Fixed JSON validator for Content Patcher showing incorrect errors for..
17-
* some valid `Entries`, `Fields`, and `When` field values;
17+
* some valid `Entries`, `Fields`, `MapProperties`, `MapTiles`, and `When` field values;
1818
* `CustomLocations` entries which use the new [unique string ID](https://stardewvalleywiki.com/Modding:Common_data_field_types#Unique_string_ID) format;
1919
* `AddWarps` warps when a location name contains a dot.
2020

src/SMAPI.Web/wwwroot/schemas/content-patcher.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
"Entries": {
254254
"title": "Entries",
255255
"description": "The entries in the data file you want to add, replace, or delete. If you only want to change a few fields, use Fields instead for best compatibility with other mods. To add an entry, just specify a key that doesn't exist; to delete an entry, set the value to null (like \"some key\": null). This field supports tokens in entry keys and values.\nCaution: some XNB files have extra fields at the end for translations; when adding or replacing an entry for all locales, make sure you include the extra fields to avoid errors for non-English players.",
256-
"type": "object"
256+
"type": [ "object", "null" ]
257257
},
258258
"MoveEntries": {
259259
"title": "Move entries",
@@ -340,7 +340,7 @@
340340
"description": "The map properties (not tile properties) to add, replace, or delete. To add an property, just specify a key that doesn't exist; to delete an entry, set the value to null (like \"some key\": null). This field supports tokens in property keys and values.",
341341
"type": "object",
342342
"additionalProperties": {
343-
"type": "string"
343+
"type": [ "string", "null" ]
344344
}
345345
},
346346
"MapTiles": {
@@ -373,7 +373,7 @@
373373
"description": "The properties to set or remove. This is merged into the existing tile properties, if any. To remove a property, set its value to `null` (not \"null\" in quotes).",
374374
"type": "object",
375375
"additionalProperties": {
376-
"type": "string"
376+
"type": [ "string", "null" ]
377377
}
378378
},
379379
"Remove": {

0 commit comments

Comments
 (0)