{
    "additionalProperties": false,
    "description": "Schema for an IP anonymization enrichment",
    "properties": {
        "enabled": {
            "type": "boolean"
        },
        "name": {
            "type": "string"
        },
        "parameters": {
            "additionalProperties": false,
            "properties": {
                "anonOctets": {
                    "description": "Number of IPv4 octets to anonymize",
                    "maximum": 4,
                    "minimum": 1,
                    "type": "number"
                },
                "anonSegments": {
                    "description": "Number of IPv6 segments to anonymize",
                    "maximum": 8,
                    "minimum": 1,
                    "type": "integer"
                }
            },
            "required": [
                "anonOctets"
            ],
            "type": "object"
        },
        "vendor": {
            "type": "string"
        }
    },
    "required": [
        "name",
        "vendor",
        "enabled",
        "parameters"
    ],
    "self": {
        "format": "jsonschema",
        "name": "anon_ip",
        "vendor": "com.snowplowanalytics.snowplow",
        "version": "1-0-1"
    },
    "type": "object"
}