Azure DevOps · Schema

Comment

A comment in a pull request thread

AgileCI/CDDevOpsProject ManagementVersion Control

Properties

Name Type Description
id integer
parentCommentId integer
content string
publishedDate string
lastUpdatedDate string
lastContentUpdatedDate string
commentType string
author object
isDeleted boolean
usersLiked array
url string
View JSON Schema on GitHub

JSON Schema

microsoft-azure-devops-comment-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Comment",
  "title": "Comment",
  "type": "object",
  "description": "A comment in a pull request thread",
  "properties": {
    "id": {
      "type": "integer"
    },
    "parentCommentId": {
      "type": "integer"
    },
    "content": {
      "type": "string"
    },
    "publishedDate": {
      "type": "string",
      "format": "date-time"
    },
    "lastUpdatedDate": {
      "type": "string",
      "format": "date-time"
    },
    "lastContentUpdatedDate": {
      "type": "string",
      "format": "date-time"
    },
    "commentType": {
      "type": "string",
      "enum": [
        "unknown",
        "text",
        "codeChange",
        "system"
      ]
    },
    "author": {
      "$ref": "#/components/schemas/IdentityRef"
    },
    "isDeleted": {
      "type": "boolean"
    },
    "usersLiked": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/IdentityRef"
      }
    },
    "url": {
      "type": "string",
      "format": "uri"
    }
  }
}