summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/entities/commit.json
blob: 686d29c97d2426cf96bba493c075eb440c3592e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  "type": "object",
  "allOf": [
    { "$ref": "../public_api/v4/commit/basic.json" },
    {
      "type": "object",
      "required": [
        "author_gravatar_url",
        "commit_url",
        "commit_path",
        "author"
      ],
      "properties": {
        "author_gravatar_url": { "type": "string" },
        "commit_url": { "type": "string" },
        "commit_path": { "type": "string" },
        "author": {
          "oneOf": [
            { "type": "null" },
            { "type": "user.json" }
          ]
        }
      },
      "additionalProperties": false
    }
  ]
}