Gitea · JSON Structure

Gitea Rest Api Comment Structure

JSON Structure description of the Gitea Comment entity.

Type: object Properties: 11
GitSource ControlDevOpsCI/CDCode HostingOpen SourceSelf HostedPackage RegistryIssue TrackingPull Requests

Comment is a JSON Structure definition published by Gitea, describing 11 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

assets body created_at html_url id issue_url original_author original_author_id pull_request_url updated_at user

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/gitea/refs/heads/main/json-structure/gitea-rest-api-comment-structure.json",
  "name": "Comment",
  "description": "JSON Structure description of the Gitea Comment entity.",
  "type": "object",
  "properties": {
    "assets": {
      "type": "array",
      "description": "Attachments contains files attached to the comment"
    },
    "body": {
      "type": "string",
      "description": "Body contains the comment text content"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "html_url": {
      "type": "string",
      "description": "HTMLURL is the web URL for viewing the comment"
    },
    "id": {
      "type": "integer",
      "description": "ID is the unique identifier for the comment",
      "format": "int64"
    },
    "issue_url": {
      "type": "string",
      "description": "IssueURL is the API URL for the issue"
    },
    "original_author": {
      "type": "string",
      "description": "OriginalAuthor is the original author name (for imported comments)"
    },
    "original_author_id": {
      "type": "integer",
      "description": "OriginalAuthorID is the original author ID (for imported comments)",
      "format": "int64"
    },
    "pull_request_url": {
      "type": "string",
      "description": "PRURL is the API URL for the pull request (if applicable)"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "user": {
      "type": "string"
    }
  }
}