{
  "type": "object",
  "additionalProperties": false,
  "patternProperties": {
    "^x-[\\w\\d\\.\\x2d_]+$": {
      "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"
    }
  },
  "properties": {
    "traits": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"
          },
          {
            "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json"
          }
        ]
      }
    },
    "summary": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/tag.json"
      },
      "uniqueItems": true
    },
    "externalDocs": {
      "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json"
    },
    "operationId": {
      "type": "string"
    },
    "protocolInfo": {
      "type": "object",
      "additionalProperties": {
        "type": "object"
      }
    },
    "message": {
      "oneOf": [
        {
          "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/message.json"
        },
        {
          "type": "object",
          "required": [
            "oneOf"
          ],
          "additionalProperties": false,
          "patternProperties": {
            "^x-[\\w\\d\\.\\x2d_]+$": {
              "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"
            }
          },
          "properties": {
            "oneOf": {
              "type": "array",
              "minItems": 2,
              "items": {
                "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/message.json"
              }
            }
          }
        }
      ]
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://asyncapi.com/definitions/2.0.0-rc1/operation.json"
}