{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "AdOcean Adapter Params",
  "description": "A schema which validates params accepted by the AdOcean adapter",
  "type": "object",
  "properties": {
    "emiter": {
      "type": "string",
      "description": "Deprecated, use emitterPrefix instead. AdOcean emiter",
      "pattern": ".+"
    },
    "emitterPrefix": {
      "type": "string",
      "description": "AdOcean emitter prefix",
      "pattern": "^[\\w\\-]+$"
    },
    "masterId": {
      "type": "string",
      "description": "Master's id",
      "pattern": "^[\\w.]+$"
    },
    "slaveId": {
      "type": "string",
      "description": "Slave's id",
      "pattern": "^adocean[\\w.]+$"
    }
  },
  "oneOf": [
    {
      "required": [
        "emiter",
        "masterId",
        "slaveId"
      ]
    },
    {
      "required": [
        "emitterPrefix",
        "masterId",
        "slaveId"
      ]
    }
  ]
}
