{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://asyncapi.com/definitions/3.1.0/tag.json",
  "description": "Allows adding metadata to a single tag.",
  "type": "object",
  "required": [ "name" ],
  "properties": {
    "description": {
      "description": "A short description for the tag. CommonMark syntax can be used for rich text representation.",
      "type": "string"
    },
    "externalDocs": {
      "oneOf": [
        {
          "$ref": "http://asyncapi.com/definitions/3.1.0/Reference.json"
        },
        {
          "$ref": "http://asyncapi.com/definitions/3.1.0/externalDocs.json"
        }
      ]
    },
    "name": {
      "description": "The name of the tag.",
      "type": "string"
    }
  },
  "patternProperties": {
    "^x-[\\w\\d\\.\\x2d_]+$": {
      "$ref": "http://asyncapi.com/definitions/3.1.0/specificationExtension.json"
    }
  },
  "additionalProperties": false,
  "example": {
    "$ref": "http://asyncapi.com/examples/3.1.0/tag.json"
  }
}
