{
    "additionalProperties": false,
    "description": "Schema for a context generated by the IAB Spiders & Robots enrichment",
    "properties": {
        "category": {
            "description": "Category based on activity if the IP/UA is a spider or robot, BROWSER otherwise",
            "enum": [
                "SPIDER_OR_ROBOT",
                "ACTIVE_SPIDER_OR_ROBOT",
                "INACTIVE_SPIDER_OR_ROBOT",
                "BROWSER"
            ]
        },
        "primaryImpact": {
            "description": "Whether the spider or robot would affect page impression measurement, ad impression measurement, both or none",
            "enum": [
                "PAGE_IMPRESSIONS",
                "AD_IMPRESSIONS",
                "PAGE_AND_AD_IMPRESSIONS",
                "UNKNOWN",
                "NONE"
            ]
        },
        "reason": {
            "description": "Type of failed check if the IP/UA is a spider or robot, PASSED_ALL otherwise",
            "enum": [
                "FAILED_IP_EXCLUDE",
                "FAILED_UA_INCLUDE",
                "FAILED_UA_EXCLUDE",
                "PASSED_ALL"
            ]
        },
        "spiderOrRobot": {
            "description": "true if the IP address or user agent checked against the list is a spider or robot, false otherwise",
            "type": "boolean"
        }
    },
    "required": [
        "spiderOrRobot",
        "category",
        "reason",
        "primaryImpact"
    ],
    "self": {
        "format": "jsonschema",
        "name": "spiders_and_robots",
        "vendor": "com.iab.snowplow",
        "version": "1-0-0"
    },
    "type": "object"
}