summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/wwwroot/schemas/content-patcher.json
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-05-01 18:16:09 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-05-01 18:16:09 -0400
commitc8ad50dad1d706a1901798f9396f6becfea36c0e (patch)
tree28bd818a5db39ec5ece1bd141a28de955950463b /src/SMAPI.Web/wwwroot/schemas/content-patcher.json
parent451b70953ff4c0b1b27ae0de203ad99379b45b2a (diff)
parentf78093bdb58d477b400cde3f19b70ffd6ddf833d (diff)
downloadSMAPI-c8ad50dad1d706a1901798f9396f6becfea36c0e.tar.gz
SMAPI-c8ad50dad1d706a1901798f9396f6becfea36c0e.tar.bz2
SMAPI-c8ad50dad1d706a1901798f9396f6becfea36c0e.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI.Web/wwwroot/schemas/content-patcher.json')
-rw-r--r--src/SMAPI.Web/wwwroot/schemas/content-patcher.json42
1 files changed, 19 insertions, 23 deletions
diff --git a/src/SMAPI.Web/wwwroot/schemas/content-patcher.json b/src/SMAPI.Web/wwwroot/schemas/content-patcher.json
index 6b80f260..4975a973 100644
--- a/src/SMAPI.Web/wwwroot/schemas/content-patcher.json
+++ b/src/SMAPI.Web/wwwroot/schemas/content-patcher.json
@@ -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",