update schema for Content Patcher 1.17

This commit is contained in:
Jesse Plamondon-Willard 2020-08-16 11:28:13 -04:00
parent 497192fab2
commit d6dc1364be
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
2 changed files with 12 additions and 6 deletions

View File

@ -18,7 +18,7 @@
* You can now read/write `SDate` values to JSON (e.g. for `config.json`, network mod messages, etc).
* For the web UI:
* Updated the JSON validator/schema for Content Patcher 1.16.
* Updated the JSON validator/schema for Content Patcher 1.16 and 1.17.
* For SMAPI developers:
* The web API now returns an update alert in two new cases: any newer unofficial update (previously only shown if the mod was incompatible), and a newer prerelease version if the installed non-prerelease version is broken (previously only shown if the installed version was prerelease).

View File

@ -11,9 +11,9 @@
"title": "Format version",
"description": "The format version. You should always use the latest version to enable the latest features and avoid obsolete behavior.",
"type": "string",
"const": "1.16.0",
"const": "1.17.0",
"@errorMessages": {
"const": "Incorrect value '@value'. This should be set to the latest format version, currently '1.16.0'."
"const": "Incorrect value '@value'. This should be set to the latest format version, currently '1.17.0'."
}
},
"ConfigSchema": {
@ -124,6 +124,9 @@
"title": "Enabled",
"description": "Whether to apply this patch. Default true. This fields supports immutable tokens (e.g. config tokens) if they return true/false.",
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"enum": [ "true", "false" ]
@ -131,15 +134,18 @@
{
"type": "string",
"pattern": "\\{\\{[^{}]+\\}\\}"
},
{
"type": "boolean"
}
],
"@errorMessages": {
"anyOf": "Invalid value; must be true, false, or a single token which evaluates to true or false."
}
},
"Update": {
"title": "Update",
"description": "When the patch should update if it changed. The possible values are 'OnDayStart' and 'OnLocationChange' (defaults to OnDayStart).",
"type": "string",
"enum": [ "OnDayStart", "OnLocationChange" ]
},
"FromFile": {
"title": "Source file",
"description": "The relative file path in your content pack folder to load instead (like 'assets/dinosaur.png'). This can be a .json (data), .png (image), .tbin or .tmx (map), or .xnb file. This field supports tokens and capitalization doesn't matter.",