{ "$id": "serviceDocument", "title": "serviceDocument", "description": "A single service", "type": "object", "properties": { "_id": { "$ref": "common#/definitions/mongoObjectId" }, "name": { "$ref": "common#/definitions/standardName" }, "description": { "$ref": "common#/definitions/standardDescription" }, "traffic": { "allOf": [ { "$ref": "traffic-common" }, { "anyOf": [ { "$ref": "traffic-tcp" }, { "$ref": "traffic-udp" }, { "$ref": "traffic-icmp" }, { "$ref": "traffic-icmpv6" }, { "type": "object", "properties": { "protocol": { "type": [ "null", "integer" ], "minimum": 0, "maximum": 255 } } } ] } ] } }, "required": [ "name", "traffic" ], "additionalProperties": true }