{
    "type": "object",
    "properties": {
        "resourceName": {
            "type": "string"
        },
        "etag": {
            "type": "string"
        },
        "metadata": {
            "type": "object",
            "properties": {
                "sources": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "type": {
                                "type": "string"
                            },
                            "id": {
                                "type": "string"
                            },
                            "etag": {
                                "type": "string"
                            },
                            "updateTime": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "type",
                            "id",
                            "etag"
                        ]
                    }
                },
                "objectType": {
                    "type": "string"
                }
            },
            "required": [
                "sources",
                "objectType"
            ]
        },
        "photos": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "metadata": {
                        "type": "object",
                        "properties": {
                            "primary": {
                                "type": "boolean"
                            },
                            "source": {
                                "type": "object",
                                "properties": {
                                    "type": {
                                        "type": "string"
                                    },
                                    "id": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "type",
                                    "id"
                                ]
                            }
                        },
                        "required": [
                            "source"
                        ]
                    },
                    "url": {
                        "type": "string"
                    },
                    "default": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "metadata",
                    "url"
                ]
            }
        },
        "organizations": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "metadata": {
                        "type": "object",
                        "properties": {
                            "primary": {
                                "type": "boolean"
                            },
                            "source": {
                                "type": "object",
                                "properties": {
                                    "type": {
                                        "type": "string"
                                    },
                                    "id": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "type",
                                    "id"
                                ]
                            }
                        },
                        "required": [
                            "source"
                        ]
                    },
                    "current": {
                        "type": "boolean"
                    },
                    "name": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "domain": {
                        "type": "string"
                    }
                },
                "required": [
                    "metadata"
                ]
            }
        },
        "memberships": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "metadata": {
                        "type": "object",
                        "properties": {
                            "source": {
                                "type": "object",
                                "properties": {
                                    "type": {
                                        "type": "string"
                                    },
                                    "id": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "type",
                                    "id"
                                ]
                            }
                        },
                        "required": [
                            "source"
                        ]
                    },
                    "contactGroupMembership": {
                        "type": "object",
                        "properties": {
                            "contactGroupId": {
                                "type": "string"
                            },
                            "contactGroupResourceName": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "contactGroupId",
                            "contactGroupResourceName"
                        ]
                    }
                },
                "required": [
                    "metadata",
                    "contactGroupMembership"
                ]
            }
        },
        "contactId": {
            "type": "string"
        }
    },
    "version": 1
}
