Gitea · Schema

Tag

Tag represents a repository tag

GitSource ControlDevOpsCI/CDCode HostingOpen SourceSelf HostedPackage RegistryIssue TrackingPull Requests

Properties

Name Type Description
commit object
id string The ID (SHA) of the tag
message string The message associated with the tag
name string The name of the tag
tarball_url string The URL to download the tarball archive
zipball_url string The URL to download the zipball archive
View JSON Schema on GitHub

JSON Schema

gitea-rest-api-tag-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/gitea/main/json-schema/gitea-rest-api-tag-schema.json",
  "title": "Tag",
  "description": "Tag represents a repository tag",
  "type": "object",
  "properties": {
    "commit": {
      "$ref": "#/$defs/CommitMeta"
    },
    "id": {
      "description": "The ID (SHA) of the tag",
      "type": "string",
      "x-go-name": "ID"
    },
    "message": {
      "description": "The message associated with the tag",
      "type": "string",
      "x-go-name": "Message"
    },
    "name": {
      "description": "The name of the tag",
      "type": "string",
      "x-go-name": "Name"
    },
    "tarball_url": {
      "description": "The URL to download the tarball archive",
      "type": "string",
      "x-go-name": "TarballURL"
    },
    "zipball_url": {
      "description": "The URL to download the zipball archive",
      "type": "string",
      "x-go-name": "ZipballURL"
    }
  },
  "x-go-package": "code.gitea.io/gitea/modules/structs",
  "$defs": {
    "CommitMeta": {
      "type": "object",
      "title": "CommitMeta contains meta information of a commit in terms of API.",
      "properties": {
        "created": {
          "type": "string",
          "format": "date-time",
          "x-go-name": "Created"
        },
        "sha": {
          "description": "SHA is the commit SHA hash",
          "type": "string",
          "x-go-name": "SHA"
        },
        "url": {
          "description": "URL is the API URL for the commit",
          "type": "string",
          "x-go-name": "URL"
        }
      },
      "x-go-package": "code.gitea.io/gitea/modules/structs"
    }
  }
}