From a295d74103ab93142b021dcca725f548f2cba1f9 Mon Sep 17 00:00:00 2001 From: eth0net Date: Wed, 26 Aug 2026 19:01:36 +0100 Subject: [PATCH] add JSON schema for Content Patcher include files --- .../schemas/content-patcher-include.json | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/SMAPI.Web/wwwroot/schemas/content-patcher-include.json diff --git a/src/SMAPI.Web/wwwroot/schemas/content-patcher-include.json b/src/SMAPI.Web/wwwroot/schemas/content-patcher-include.json new file mode 100644 index 000000000..531e11238 --- /dev/null +++ b/src/SMAPI.Web/wwwroot/schemas/content-patcher-include.json @@ -0,0 +1,29 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://smapi.io/schemas/content-patcher-include.json", + "title": "Content Patcher include file", + "description": "A secondary Content Patcher file loaded by an Include patch.", + "@documentationUrl": "https://github.com/Pathoschild/StardewMods/blob/develop/ContentPatcher/docs/author-guide/action-include.md", + + "allowComments": true, + "allowTrailingCommas": true, + + "type": "object", + "properties": { + "$schema": { + "title": "Schema", + "description": "A reference to this JSON schema. Not part of the actual format, but useful for validation tools.", + "type": "string" + }, + "Changes": { + "$ref": "content-patcher.json#/properties/Changes" + } + }, + + "required": ["Changes"], + + "additionalProperties": false, + "@errorMessages": { + "additionalProperties": "Invalid field. An included file can only contain a Changes field." + } +}