summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/release.json
blob: b0296e5e62dfa5da7f4beffb65ec864329617d03 (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
28
29
30
{
  "type": "object",
  "required": ["tag_name", "description"],
  "properties": {
    "name": { "type": "string" },
    "tag_name": { "type": "string" },
    "ref": { "type": "string "},
    "description": { "type": "string" },
    "description_html": { "type": "string" },
    "created_at": { "type": "date" },
    "commit": {
      "oneOf": [{ "type": "null" }, { "$ref": "public_api/v4/commit/basic.json" }]
    },
    "author": {
      "oneOf": [{ "type": "null" }, { "$ref": "public_api/v4/user/basic.json" }]
    },
    "assets": {
      "count": { "type": "integer" },
      "links": { "$ref": "release/links.json" },
      "sources": {
        "type": "array",
        "items": {
          "format": "zip",
          "url": "string"
        }
      }
    }
  },
  "additionalProperties": false
}