summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-08-06 00:52:47 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-14 19:05:54 -0400
commite51638948f4355c27d6b3f02d637d4ed754ccb73 (patch)
tree9362b5f90619d4c9d92d8a7e1ae77af82fce08d1 /docs
parent22480d25b9ba15df8cd26e788cd4a2d73f002a0d (diff)
downloadSMAPI-e51638948f4355c27d6b3f02d637d4ed754ccb73.tar.gz
SMAPI-e51638948f4355c27d6b3f02d637d4ed754ccb73.tar.bz2
SMAPI-e51638948f4355c27d6b3f02d637d4ed754ccb73.zip
add support for @value token in custom schema errors (#654)
Diffstat (limited to 'docs')
-rw-r--r--docs/technical/web.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/technical/web.md b/docs/technical/web.md
index a008fe72..108e3671 100644
--- a/docs/technical/web.md
+++ b/docs/technical/web.md
@@ -44,6 +44,8 @@ format, with some special properties:
"oneOf:valid against more than one schema": "Can't specify both EntryDll or ContentPackFor, they're mutually exclusive."
}
```
+ Error messages can optionally include a `@value` token, which will be replaced with the error's
+ value field (which is usually the original field value).
You can also reference these schemas in your JSON file directly using the `$schema` field, for
text editors that support schema validation. For example: