fix: mapped_locations schema definition

This commit is contained in:
TravisTX 2020-12-31 05:00:17 -07:00 committed by Jan De Dobbeleer
parent 1bc52c3c48
commit 7e7483501c

View file

@ -882,10 +882,31 @@
"default": "folder" "default": "folder"
}, },
"mapped_locations": { "mapped_locations": {
"type": "object", "type": "array",
"title": "Mapped Locations", "title": "Mapped Locations",
"description": "Custom glyph/text for specific paths", "description": "Custom glyph/text for specific paths",
"additionalProperties": { "type": "string" } "items": {
"type": "array",
"items": [
{
"type": "string",
"title": "Filesystem path"
},
{
"type": "string",
"title": "Replacement text"
}
],
"minItems": 2,
"maxItems": 2,
"additionalItems": false
}
},
"mapped_locations_enabled": {
"type": "boolean",
"title": "Enable the Mapped Locations feature",
"description": "Replace known locations in the path with the replacements before applying the style.",
"default": true
} }
} }
} }