allow comments and trailing commas in schemas for VSCode
The `allowComments` and `allowTrailingCommas` fields are VSCode-specific extensions to JSON Schema.
This commit is contained in:
parent
c310875f90
commit
38a76b5108
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
* For mod authors:
|
* For mod authors:
|
||||||
* Added validation for the manifest `Dependencies` field.
|
* Added validation for the manifest `Dependencies` field.
|
||||||
|
* When using Visual Studio Code to edit JSON files [with a SMAPI JSON schema](technical/web.md#using-a-schema-file-directly), it will no longer warn about comments or trailing commas.
|
||||||
* Fixed validation for mods with version `0.0.0`.
|
* Fixed validation for mods with version `0.0.0`.
|
||||||
* Fixed _loaded with custom settings_ trace log when using default settings.
|
* Fixed _loaded with custom settings_ trace log when using default settings.
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,11 @@
|
||||||
"title": "Content Patcher content pack",
|
"title": "Content Patcher content pack",
|
||||||
"description": "Content Patcher content file for mods",
|
"description": "Content Patcher content file for mods",
|
||||||
"@documentationUrl": "https://github.com/Pathoschild/StardewMods/tree/develop/ContentPatcher#readme",
|
"@documentationUrl": "https://github.com/Pathoschild/StardewMods/tree/develop/ContentPatcher#readme",
|
||||||
"type": "object",
|
|
||||||
|
|
||||||
|
"allowComments": true,
|
||||||
|
"allowTrailingCommas": true,
|
||||||
|
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"Format": {
|
"Format": {
|
||||||
"title": "Format version",
|
"title": "Format version",
|
||||||
|
|
|
@ -4,8 +4,11 @@
|
||||||
"title": "SMAPI i18n file",
|
"title": "SMAPI i18n file",
|
||||||
"description": "A translation file for a SMAPI mod or content pack.",
|
"description": "A translation file for a SMAPI mod or content pack.",
|
||||||
"@documentationUrl": "https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Translation",
|
"@documentationUrl": "https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Translation",
|
||||||
"type": "object",
|
|
||||||
|
|
||||||
|
"allowComments": true,
|
||||||
|
"allowTrailingCommas": true,
|
||||||
|
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"$schema": {
|
"$schema": {
|
||||||
"title": "Schema",
|
"title": "Schema",
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
"title": "SMAPI manifest",
|
"title": "SMAPI manifest",
|
||||||
"description": "Manifest file for a SMAPI mod or content pack",
|
"description": "Manifest file for a SMAPI mod or content pack",
|
||||||
"@documentationUrl": "https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Manifest",
|
"@documentationUrl": "https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Manifest",
|
||||||
|
|
||||||
|
"allowComments": true,
|
||||||
|
"allowTrailingCommas": true,
|
||||||
|
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"Name": {
|
"Name": {
|
||||||
|
|
Loading…
Reference in New Issue