update schemas for Content Patcher 1.11

This commit is contained in:
Jesse Plamondon-Willard 2019-12-16 21:51:55 -05:00
parent c4e2e94eed
commit 4da65cf4c0
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
2 changed files with 14 additions and 11 deletions

View File

@ -14,7 +14,7 @@
* For the web UI: * For the web UI:
* Added option to edit & reupload in the JSON validator. * Added option to edit & reupload in the JSON validator.
* If a JSON validator upload can't be saved to Pastebin (e.g. due to rate limits), it's now uploaded to Amazon S3 instead. Files uploaded to S3 expire after one month. * If a JSON validator upload can't be saved to Pastebin (e.g. due to rate limits), it's now uploaded to Amazon S3 instead. Files uploaded to S3 expire after one month.
* Updated the JSON validator for Content Patcher 1.10.0. * Updated the JSON validator for Content Patcher 1.10 and 1.11.
* Fixed JSON validator no longer letting you change format when viewing results. * Fixed JSON validator no longer letting you change format when viewing results.
* For modders: * For modders:

View File

@ -11,9 +11,9 @@
"title": "Format version", "title": "Format version",
"description": "The format version. You should always use the latest version to enable the latest features and avoid obsolete behavior.", "description": "The format version. You should always use the latest version to enable the latest features and avoid obsolete behavior.",
"type": "string", "type": "string",
"const": "1.10.0", "const": "1.11.0",
"@errorMessages": { "@errorMessages": {
"const": "Incorrect value '@value'. This should be set to the latest format version, currently '1.10.0'." "const": "Incorrect value '@value'. This should be set to the latest format version, currently '1.11.0'."
} }
}, },
"ConfigSchema": { "ConfigSchema": {
@ -276,6 +276,9 @@
} }
}, },
"allOf": [ "allOf": [
{
"required": [ "Action" ]
},
{ {
"if": { "if": {
"properties": { "properties": {
@ -364,26 +367,26 @@
"properties": { "properties": {
"X": { "X": {
"title": "X-Coordinate", "title": "X-Coordinate",
"description": "Location in pixels of the top-left of the rectangle", "description": "The X position of the area's top-left corner, measured in pixels for a texture or tiles for a map. This can contain tokens.",
"type": "integer", "type": [ "integer", "string" ],
"minimum:": 0 "minimum:": 0
}, },
"Y": { "Y": {
"title": "Y-Coordinate", "title": "Y-Coordinate",
"description": "Location in pixels of the top-left of the rectangle", "description": "The Y position of the area's top-left corner, measured in pixels for a texture or tiles for a map. This can contain tokens.",
"type": "integer", "type": [ "integer", "string" ],
"minimum:": 0 "minimum:": 0
}, },
"Width": { "Width": {
"title": "Width", "title": "Width",
"description": "The width of the rectangle", "description": "The width of the area, measured in pixels for a texture or tiles for a map. This can contain tokens.",
"type": "integer", "type": [ "integer", "string" ],
"minimum:": 0 "minimum:": 0
}, },
"Height": { "Height": {
"title": "Height", "title": "Height",
"description": "The height of the rectangle", "description": "The height of the area, measured in pixels for a texture or tiles for a map. This can contain tokens.",
"type": "integer", "type": [ "integer", "string" ],
"minimum:": 0 "minimum:": 0
} }
}, },