{
    "title" : "Store configuration schema",
    "description" : "Use this schema to validate userstore.json or globalstore.json",
    "definitions": {
        "index": {
            "type": "object",
            "properties": {
                "path": {
                    "type": "string"
                },
                "type": {
                    "type": "string",
                    "enum": ["string", "integer", "floating", "json1", "full_text"]
                }
            },
            "required": ["path", "type"]
        },
        "soup": {
            "type": "object",
            "properties": {
                "soupName": { "type": "string"},
                "indexes": {
                    "type": "array",
                    "items": { "$ref": "#/definitions/index" }
                }
            },
            "required": ["soupName", "indexes"]
        }
    },
    "type": "object",
    "properties": {
        "soups": {
            "type": "array",
            "items": { "$ref": "#/definitions/soup" }
        }
    },
    "required": ["soups"]
}
