{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$ref": "#/definitions/PhotosSetupResponse",
    "definitions": {
        "PhotosSetupResponse": {
            "type": "object",
            "properties": {
                "data": {
                    "type": "object",
                    "properties": {
                        "moreComing": {
                            "type": "boolean",
                            "const": false,
                            "description": "Should always be false"
                        },
                        "syncToken": {
                            "type": "string",
                            "description": "Sync token - currently not used",
                            "minLength": 1
                        },
                        "zones": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/PhotosSetupResponseZone"
                            },
                            "description": "The list of photos account zones - either primary or primary and shared",
                            "minItems": 0
                        }
                    },
                    "required": [
                        "moreComing",
                        "syncToken",
                        "zones"
                    ]
                }
            },
            "required": [
                "data"
            ],
            "description": "The expected response format for the photos setup request"
        },
        "PhotosSetupResponseZone": {
            "type": "object",
            "properties": {
                "zoneID": {
                    "type": "object",
                    "properties": {
                        "zoneName": {
                            "type": "string",
                            "minLength": 1
                        },
                        "ownerRecordName": {
                            "type": "string",
                            "minLength": 1
                        },
                        "zoneType": {
                            "type": "string",
                            "const": "REGULAR_CUSTOM_ZONE",
                            "description": "Fixed zone type"
                        }
                    },
                    "required": [
                        "zoneName",
                        "ownerRecordName",
                        "zoneType"
                    ]
                },
                "deleted": {
                    "type": "boolean",
                    "description": "Might be marked as deleted"
                }
            },
            "required": [
                "zoneID"
            ],
            "description": "Response zone object from photos setup response"
        }
    }
}
