{
    "format": "ndjson",
    "definitions": {},
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "http://example.com/root.json",
    "title": "Appreciation Engine Activities",
    "required": [
        "Name",
        "ID"
    ],
    "type": "object",
    "properties": {
        "Name": {
            "$id": "#/properties/Name",
            "type": "string",
            "default": "",
            "examples": [
                "Spotify Pre-Saves"
            ],
            "pattern": "^(.+)$"
        },
        "Created": {
            "$id": "#/properties/Created",
            "type": ["null", "string"],
            "default": "",
            "examples": [
                "2020-10-03 12:36:17"
            ],
            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$"
        },
        "Modified": {
            "$id": "#/properties/Modified",
            "type": ["null", "string"],
            "default": "",
            "examples": [
                "2020-10-03 12:36:17"
            ],
            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$"
        },
        "ID": {
            "$id": "#/properties/ID",
            "type": "integer",
            "default": "",
            "examples": [
                123
            ],
            "pattern": "\\d+"
        },
        "Service": {
            "$id": "#/properties/Service",
            "type": "string",
            "default": "",
            "examples": [
                "Custom"
            ],
            "pattern": "^(.+)$"
        },
        "Active": {
            "$id": "#/properties/Active",
            "type": "integer",
            "default": "",
            "examples": [
                123
            ],
            "pattern": "\\d+"
        },
        "Score": {
            "$id": "#/properties/Score",
            "type": "string",
            "default": "",
            "examples": [
                "0"
            ],
            "pattern": "\\d+"
        },
        "StartDate": {
            "$id": "#/properties/StartDate",
            "type": ["null", "string"],
            "default": "",
            "examples": [
                "null"
            ],
            "pattern": ".+"
        },
        "EndDate": {
            "$id": "#/properties/EndDate",
            "type": ["null", "string"],
            "default": "",
            "examples": [
                "null"
            ],
            "pattern": ".+"
        },
        "Template": {
            "$id": "#/properties/Template",
            "type": ["object", "null"],
            "properties": {
                "data": {
                    "$id": "#/properties/Template/properties/data",
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "Parameter": {
                                "$id": "#/properties/Template/properties/data/properties/Parameter",
                                "type": "string",
                                "default": "",
                                "examples": [
                                    "notapplicable"
                                ],
                                "pattern": "^(.*)$"
                            },
                            "Type": {
                                "$id": "#/properties/Template/properties/data/properties/Type",
                                "type": "string",
                                "default": "",
                                "examples": [
                                    "StaticText"
                                ],
                                "pattern": "^(.*)$"
                            },
                            "Label": {
                                "$id": "#/properties/Template/properties/data/properties/Label",
                                "type": "string",
                                "default": "",
                                "examples": [
                                    "Not Applicable"
                                ],
                                "pattern": "^(.*)$"
                            },
                            "Value": {
                                "$id": "#/properties/Template/properties/data/properties/Value",
                                "type": "string",
                                "default": "",
                                "examples": [
                                    "notapplicable"
                                ],
                                "pattern": "^(.*)$"
                            },
                            "Lookup": {
                                "$id": "#/properties/Template/properties/data/properties/Lookup",
                                "type": "string",
                                "default": "",
                                "examples": [
                                    "SpotifyID"
                                ],
                                "pattern": "^(.*)$"
                            }
                        }
                    }
                }
            }
        },
        "SegmentName": {
            "$id": "#/properties/SegmentName",
            "type": "string",
            "default": "",
            "examples": [
                "Test Campaign [Century Media Europe Newsletter]"
            ],
            "pattern": ".+$"
        },
        "BrandName": {
            "$id": "#/properties/BrandName",
            "type": "string",
            "default": "",
            "examples": [
                "Century Media Europe Newsletter"
            ],
            "pattern": ".+$"
        },
        "BrandID": {
            "$id": "#/properties/BrandID",
            "type": "string",
            "default": "",
            "examples": [
                "3447670"
            ],
            "pattern": "\\d+$"
        }
    }
}
