{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "o2r-meta map schema",
    "description": "broker mapping file schema used to validate metadata map files",
    "definitions": {
        "Map": {
            "type": "array"
        },
        "Settings": {
            "type": "array",
            "items": {
                "properties": {
                    "name": {
                        "type": "array"
                    },
                    "map_description": {
                        "type": "string"
                    },
                    "root": {
                        "type": "string"
                    },
                    "outputfile": {
                        "type": "string"
                    },
                    "mode": {
                        "type": "string"
                    }
                }
            },
            "required": [
                "name",
                "map_description",
                "root",
                "outputfile",
                "mode"
            ]
        }
    },
    "required": [
        "Map",
        "Settings"
    ],
    "properties": {
        "Map": {
            "$ref": "#/definitions/Map"
        },
        "Settings": {
            "$ref": "#/definitions/Settings"
        }
    }
}