GitHub · JSON Structure

Github Gists Gist Commit Structure

Gist Commit

Type: object Properties: 5 Required: 5
CodePipelinesPlatformSoftware DevelopmentSource ControlT1

gist-commit is a JSON Structure definition published by GitHub, describing 5 properties, of which 5 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

url version user change_status committed_at

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/github/refs/heads/main/json-structure/github-gists-gist-commit-structure.json",
  "name": "gist-commit",
  "description": "Gist Commit",
  "type": "object",
  "properties": {
    "url": {
      "type": "uri",
      "example": "https://api.github.com/gists/aa5a315d61ae9438b18d/57a7f021a713b1c5a6a199b54cc514735d2d462f"
    },
    "version": {
      "type": "string",
      "example": "57a7f021a713b1c5a6a199b54cc514735d2d462f"
    },
    "user": {
      "$ref": "#/components/schemas/nullable-simple-user"
    },
    "change_status": {
      "type": "object",
      "properties": {
        "total": {
          "type": "int32"
        },
        "additions": {
          "type": "int32"
        },
        "deletions": {
          "type": "int32"
        }
      }
    },
    "committed_at": {
      "type": "datetime",
      "example": "2010-04-14T02:15:15Z"
    }
  },
  "required": [
    "url",
    "user",
    "version",
    "committed_at",
    "change_status"
  ]
}