{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "#Directory",
    "description": "Directory, such as LDAP or Active Directory.",
    "type": "object",
    "allOf": [
        {
            "$ref": "#Entity"
        },
        {
            "properties": {
                "type": {
                    "description": "Directory type.",
                    "type": "string",
                    "examples": ["LDAP", "AD"]
                },
                "directoryServers": {
                    "description": "List of directory servers.",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "domainControllers": {
                    "description": "List of domain controllers.",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "parent": {
                    "description": "Parent directory, if the entity is a sub-directory.",
                    "type": "string"
                }
            },
            "required": []
        }
    ]
}
