@o3r/core
Version:
Core of the Otter Framework
28 lines (27 loc) • 821 B
JSON
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"$id": "PatternReplacementBuilderSchema",
"title": "Pattern replacement builder",
"description": "Replace a given pattern in a list of files",
"properties": {
"files": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of files where to replace the pattern",
"default": []
},
"searchValue": {
"type": "string",
"description": "The RegExp that has to be replaced by replaceValue"
},
"replaceValue": {
"type": "string",
"description": "A string containing the text to replace for every successful match of searchValue in this string."
}
},
"additionalProperties": false,
"required": ["files", "searchValue", "replaceValue"]
}