Skip to content

Commit df1df51

Browse files
committed
update JSON schema for Content Patcher 2.1.0
1 parent 9000ca7 commit df1df51

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

docs/release-notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* Fixed player sprites and building paint masks not always propagated on change.
1313

1414
* For the web UI:
15+
* Updated JSON validator for Content Patcher 2.1.0.
1516
* Fixed the log parser showing the wrong game folder path if the `Mods` folder path was customized.
1617
* Fixed JSON validator for Content Patcher showing incorrect errors for..
1718
* some valid `Entries`, `Fields`, `MapProperties`, `MapTiles`, and `When` field values;

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"title": "Format version",
1515
"description": "The format version. You should always use the latest version to enable the latest features, avoid obsolete behavior, and reduce load times.",
1616
"type": "string",
17-
"pattern": "^2\\.0\\.[0-9]+$",
17+
"pattern": "^2\\.1\\.[0-9]+$",
1818
"@errorMessages": {
19-
"pattern": "Incorrect value '@value'. You should always use the latest format version (currently 2.0.0) to enable the latest features, avoid obsolete behavior, and reduce load times."
19+
"pattern": "Incorrect value '@value'. You should always use the latest format version (currently 2.1.0) to enable the latest features, avoid obsolete behavior, and reduce load times."
2020
}
2121
},
2222
"ConfigSchema": {
@@ -191,6 +191,15 @@
191191
"not": "Invalid target; it shouldn't include the 'Content/' folder, '.xnb' extension, or locale code."
192192
}
193193
},
194+
"TargetLocale": {
195+
"title": "Target locale",
196+
"description": "The locale code in the target asset's name to match (like 'fr-FR' to target `Characters/Dialogue/Abigail.fr-FR`), or an empty string to match only the base unlocalized asset, or omit to match all localized or unlocalized variants of the target asset.",
197+
"type": "string",
198+
"pattern": "^ *[a-zA-Z0-9_\\-]+ *$",
199+
"@errorMessages": {
200+
"pattern": "Invalid target locale; it should only contain alphanumeric, underscore, or dash characters."
201+
}
202+
},
194203
"LogName": {
195204
"title": "Patch log name",
196205
"description": "A name for this patch shown in log messages. This is very useful for understanding errors; if not specified, will default to a name like 'entry #14 (EditImage Animals/Dinosaurs)'.",

0 commit comments

Comments
 (0)