Atlassian · Schema

Diff Stat

A diffstat object that includes a summary of changes made to a file between two commits.

CodeCollaborationPlatformProductivitySoftware Development

Properties

Name Type Description
type string
status string
lines_added integer
lines_removed integer
old object
new object
View JSON Schema on GitHub

JSON Schema

atlassian-diffstat-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/diffstat",
  "title": "Diff Stat",
  "type": "object",
  "description": "A diffstat object that includes a summary of changes made to a file between two commits.",
  "properties": {
    "type": {
      "type": "string",
      "example": "example_value"
    },
    "status": {
      "type": "string",
      "enum": [
        "added",
        "removed",
        "modified",
        "renamed"
      ],
      "example": "added"
    },
    "lines_added": {
      "type": "integer",
      "example": 10
    },
    "lines_removed": {
      "type": "integer",
      "example": 10
    },
    "old": {
      "$ref": "#/components/schemas/commit_file"
    },
    "new": {
      "$ref": "#/components/schemas/commit_file"
    }
  },
  "required": [
    "type"
  ],
  "additionalProperties": true
}