Files
blockly/tests/migration/renamings.schema.json
Maribeth Bottorff 88ff901a72 chore: use prettier instead of clang-format (#7014)
* chore: add and configure prettier

* chore: remove clang-format

* chore: remove clang-format config

* chore: lint additional ts files

* chore: fix lint errors in blocks

* chore: add prettier-ignore where needed

* chore: ignore js blocks when formatting

* chore: fix playground html syntax

* chore: fix yaml spacing from merge

* chore: convert text blocks to use arrow functions

* chore: format everything with prettier

* chore: fix lint unused imports in blocks
2023-05-10 16:01:39 -07:00

60 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$_]*)*$"
}
}
}