{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "Schema for template meta data (aka front matter)",
    "type": "object",
    "properties": {
        "target": {
            "title": "Target path to write the configuration file to (defaults to template name minus extension)",
            "description": "Can be an abolute or relative path that will be resolved relative to the directory confgen is called in (i.e. not relative to the template file).",
            "type": "string"
        },
        "chmod": {
            "title": "File permissions to apply to target file (chmod mode)",
            "description": "Permissions must be given in decimal notation (common values are '644', '755', '700' etc.).\nInternally, they will be converted to their octal representation, which means that decimal '777' will actually apply octal '0777'.",
            "type": "number",
            "min": 0,
            "max": 777
        },
        "reload": {
            "title": "A command string to execute after writing the configuration file",
            "type": "string"
        },
        "description": {
            "title": "An optional descriptive text for template authors",
            "type": "string"
        }
    },
    "required": [],
    "additionalProperties": true
}