{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Adform Adapter Params",
    "description": "A schema which validates params accepted by the Adform adapter",
    "type": "object",
    "properties": {
        "mid": {
            "type": [
                "integer",
                "string"
            ],
            "description": "An ID which identifies the placement selling the impression"
        },
        "priceType": {
            "type": "string",
            "enum": [
                "gross",
                "net"
            ],
            "description": "An expected price type (net or gross) of bids."
        },
        "mkv": {
            "type": "string",
            "description": "Comma-separated key-value pairs. Forbidden symbols: &. Example: mkv='color:blue,length:350'",
            "pattern": "^(\\s*|((\\s*[^,:&\\s]+\\s*:[^,:&]*)(,\\s*[^,:&\\s]+\\s*:[^,:&]*)*))$"
        },
        "mkw": {
            "type": "string",
            "description": "Comma-separated keywords. Forbidden symbols: &.",
            "pattern": "^[^&]*$"
        }
    },
    "required": [
        "mid"
    ]
}