update schema for Content Patcher 1.25.0

This commit is contained in:
Jesse Plamondon-Willard 2022-02-27 20:40:49 -05:00
parent f36b4e06ef
commit 8429485e69
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
2 changed files with 20 additions and 23 deletions

View File

@ -26,6 +26,7 @@
`IAssetInfo.AssetNameEquals`<br />`IAssetData.AssetNameEquals` | Use `Name.IsEquivalentTo` instead.
* For the web UI:
* Updated the JSON validator/schema for Content Patcher 1.25.0.
* Added `data-*` attributes to log parser page for external tools.
* Fixed JSON validator warning shown for update keys without a subkey.

View File

@ -14,9 +14,9 @@
"title": "Format version",
"description": "The format version. You should always use the latest version to enable the latest features, avoid obsolete behavior, and reduce load times.",
"type": "string",
"const": "1.24.0",
"const": "1.25.0",
"@errorMessages": {
"const": "Incorrect value '@value'. You should always use the latest format version (currently 1.24.0) to enable the latest features, avoid obsolete behavior, and reduce load times."
"const": "Incorrect value '@value'. You should always use the latest format version (currently 1.25.0) to enable the latest features, avoid obsolete behavior, and reduce load times."
}
},
"ConfigSchema": {
@ -159,6 +159,14 @@
"additionalProperties": false
}
},
"AliasTokenNames": {
"title": "Alias token names",
"description": "Defines optional alternate name for existing tokens. This only affects your content pack, and you can use both the alias name and the original token name. This is mostly useful for custom tokens provided by other mods, which often have longer names. Each entry key is the alias name, and the value is the original token name.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"Changes": {
"title": "Changes",
"description": "The changes you want to make. Each entry is called a patch, and describes a specific action to perform: replace this file, copy this image into the file, etc. You can list any number of patches.",
@ -187,22 +195,6 @@
"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)'.",
"type": "string"
},
"Enabled": {
"title": "Enabled",
"description": "Whether to apply this patch. Default true. This field does not allow tokens.",
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"enum": [ "true", "false" ]
}
],
"@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', 'OnLocationChange', or 'OnTimeChange' (defaults to OnDayStart).",
@ -241,6 +233,14 @@
"description": "The part of the target image to replace. Defaults to the FromArea size starting from the top-left corner.",
"$ref": "#/definitions/Rectangle"
},
"TargetField": {
"title": "Target field",
"description": "The path to the field within the value to set as the root scope. See 'target field' in the EditData documentation for more info. This field supports tokens.",
"type": "array",
"items": {
"type": "string"
}
},
"Fields": {
"title": "Fields",
"description": "The individual fields you want to change for existing entries. This field supports tokens in field keys and values. The key for each field is the field index (starting at zero) for a slash-delimited string, or the field name for an object.",
@ -408,7 +408,6 @@
"propertyNames": {
"enum": [
"Action",
"Enabled",
"FromFile",
"LogName",
"Target",
@ -438,7 +437,6 @@
"propertyNames": {
"enum": [
"Action",
"Enabled",
"FromFile",
"LogName",
"Target",
@ -462,12 +460,12 @@
"propertyNames": {
"enum": [
"Action",
"Enabled",
"LogName",
"Target",
"Update",
"When",
"TargetField",
"Entries",
"Fields",
"MoveEntries",
@ -504,7 +502,6 @@
"propertyNames": {
"enum": [
"Action",
"Enabled",
"FromFile",
"LogName",
"Target",
@ -533,7 +530,6 @@
"propertyNames": {
"enum": [
"Action",
"Enabled",
"FromFile",
"LogName",
"Update",