{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "title": "datasourcesCreate",
    "required": [
        "config"
    ],
    "properties": {
        "config": {
            "type": "object",
            "required": [
                "target"
            ],
            "properties": {
                "target": {
                    "type": "string"
                }
            },
            "additionalProperties": true
        },
        "schoolId": {
            "type": "string",
            "pattern": "[a-f0-9]{24}"
        },
        "name": {
            "type": "string"
        },
        "protected": {
            "type": "array",
            "items": {
                "type": "string",
                "description": "fields in the config that should recieve special protection. A field named password will always be protected"
            }
        }
    },
    "additionalProperties": false
}