JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/base_commit",
"title": "base_commit",
"allOf": [
{
"$ref": "#/components/schemas/object"
},
{
"type": "object",
"title": "Base Commit",
"description": "The common base type for both repository and snippet commits.",
"properties": {
"hash": {
"type": "string",
"pattern": "[0-9a-f]{7,}?"
},
"date": {
"type": "string",
"format": "date-time"
},
"author": {
"$ref": "#/components/schemas/author"
},
"message": {
"type": "string"
},
"summary": {
"type": "object",
"properties": {
"raw": {
"type": "string",
"description": "The text as it was typed by a user."
},
"markup": {
"type": "string",
"description": "The type of markup language the raw content is to be interpreted in.",
"enum": [
"markdown",
"creole",
"plaintext"
]
},
"html": {
"type": "string",
"description": "The user's content rendered as HTML."
}
},
"additionalProperties": false
},
"parents": {
"type": "array",
"items": {
"$ref": "#/components/schemas/base_commit"
},
"minItems": 0
}
},
"additionalProperties": true
}
]
}