﻿{
    "title": "JSON schema for SideWaffle template sources",
    "$schema": "http://json-schema.org/draft-04/schema#",

    "properties": {
        "sources": {
            "description": "Includes information regarding all sources that have been added to SideWaffle.",
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "Name": {
                        "description": "The name of the source.",
                        "type": "string"
                    },
                    "Enabled": {
                        "description": "Indicates whether the source template(s) should be added to Visual Studio.",
                        "type": "boolean"
                    },
                    "Location": {
                        "description": "The location of the source to be added. This can be on a git repository or local file share.",
                        "type": "string",
                        "format": "uri"
                    },
                    "Branch": {
                        "description": "The branch of the source repository containing the template.",
                        "type": "string"
                    }
                }
            }
        },

        "updateInterval": {
            "description": "Used by SideWaffle to determine how often Visual Studio will download and install the templates from its source.",
            "type": "string",
            "enum": [ "Always", "OnceADay", "OnceAWeek", "OnceAMonth", "Never" ]
        }
    }
}