mirror of
https://github.com/google/blockly.git
synced 2026-01-12 11:27:14 +01:00
Use the official semantic versioning regexp from https://semver.org/, rather than the shorter but sloppier one we had previously found at https://gist.github.com/jhorsman/62eeea161a13b80e39f5249281e17c39.
58 lines
2.3 KiB
JSON
58 lines
2.3 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://github.com/google/blockly/tests/migration/renamings-schema.json",
|
|
"title": "Renamings",
|
|
"description": "A file containing information about module and module export renamings",
|
|
"type": "object",
|
|
"patternProperties": {
|
|
"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$": {"$ref": "#/$defs/version"}
|
|
},
|
|
"properties": {
|
|
"develop": {"$ref": "#/$defs/version"}
|
|
},
|
|
"additionalProperties": false,
|
|
"$defs": {
|
|
"version": {
|
|
"description": "All the renamings that happened in a paricular release.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "All the renamings in/of a particular module.",
|
|
"type": "object",
|
|
"properties": {
|
|
"oldName": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"newName": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"newExport": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"oldPath": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"newPath": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"exports": {
|
|
"description": "A list of the exports that have been renamed.",
|
|
"type": "object",
|
|
"patternProperties": {
|
|
"^[A-Za-z$_][A-Za-z0-9$_]*(\\.[A-Za-z$_][A-Za-z0-9$_]*)*$": {
|
|
"description": "A single renamed (or moved) export.",
|
|
"type": "object",
|
|
"properties": {
|
|
"newModule": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"newExport": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"oldPath": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"newPath": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"getMethod": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"setMethod": {"$ref": "#/$defs/dottedIdentifier"}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["oldName"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"dottedIdentifier": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z$_][A-Za-z0-9$_]*(\\.[A-Za-z$_][A-Za-z0-9$_]*)*$"
|
|
}
|
|
}
|
|
}
|