{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://asyncapi.com/definitions/3.1.0/asyncapi.json",
  "title": "AsyncAPI 3.1.0 schema.",
  "type": "object",
  "required": [ "asyncapi", "info" ],
  "properties": {
    "id": {
      "description": "A unique id representing the application.",
      "type": "string",
      "format": "uri"
    },
    "asyncapi": {
      "description": "The AsyncAPI specification version of this document.",
      "type": "string",
      "const": "3.1.0"
    },
    "channels": {
      "$ref": "http://asyncapi.com/definitions/3.1.0/channels.json"
    },
    "components": {
      "$ref": "http://asyncapi.com/definitions/3.1.0/components.json"
    },
    "defaultContentType": {
      "description": "Default content type to use when encoding/decoding a message's payload.",
      "type": "string"
    },
    "info": {
      "$ref": "http://asyncapi.com/definitions/3.1.0/info.json"
    },
    "operations": {
      "$ref": "http://asyncapi.com/definitions/3.1.0/operations.json"
    },
    "servers": {
      "$ref": "http://asyncapi.com/definitions/3.1.0/servers.json"
    }
  },
  "patternProperties": {
    "^x-[\\w\\d\\.\\x2d_]+$": {
      "$ref": "http://asyncapi.com/definitions/3.1.0/specificationExtension.json"
    }
  },
  "additionalProperties": false
}
