{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/github/main/json-schema/github-git-tag-schema.json",
  "title": "Git Tag",
  "description": "Metadata for a Git tag",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/github-git-api-openapi.yml#/components/schemas/git-tag",
  "type": "object",
  "properties": {
    "node_id": {
      "type": "string"
    },
    "tag": {
      "description": "Name of the tag",
      "type": "string"
    },
    "sha": {
      "type": "string"
    },
    "url": {
      "description": "URL for the tag",
      "type": "string",
      "format": "uri"
    },
    "message": {
      "description": "Message describing the purpose of the tag",
      "type": "string"
    },
    "tagger": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "date",
        "email",
        "name"
      ]
    },
    "object": {
      "type": "object",
      "properties": {
        "sha": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "sha",
        "type",
        "url"
      ]
    },
    "verification": {
      "$ref": "#/$defs/verification"
    }
  },
  "required": [
    "sha",
    "url",
    "node_id",
    "tagger",
    "object",
    "tag",
    "message"
  ],
  "$defs": {
    "verification": {
      "title": "Verification",
      "type": "object",
      "properties": {
        "verified": {
          "type": "boolean"
        },
        "reason": {
          "type": "string"
        },
        "payload": {
          "type": [
            "string",
            "null"
          ]
        },
        "signature": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "verified",
        "reason",
        "payload",
        "signature"
      ]
    }
  }
}