1
0
mirror of https://github.com/pmmp/BedrockData.git synced 2024-07-07 19:45:53 -03:00
BedrockData/upgrade_schema/schema.json
2022-02-05 16:34:56 +00:00

88 lines
1.5 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$defs": {
"blockStateProperty": {
"type": "object",
"properties": {
"type": {
"enum": ["string", "int", "byte"]
},
"value": {
"type": ["string", "integer"]
}
}
}
},
"type": "object",
"additionalProperties": false,
"required": [
"maxVersionMajor",
"maxVersionMinor",
"maxVersionPatch",
"maxVersionRevision"
],
"properties": {
"maxVersionMajor": {
"type": "integer",
"minValue": 0
},
"maxVersionMinor": {
"type": "integer",
"minValue": 0
},
"maxVersionPatch": {
"type": "integer",
"minValue": 0
},
"maxVersionRevision": {
"type": "integer",
"minValue": 0
},
"renamedIds": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"renamedProperties": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"addedProperties": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/blockStateProperty"
}
}
},
"removedProperties": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
},
"remappedPropertyValues": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"$ref": "#/$defs/blockStateProperty"
}
}
}
}
}
}