summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/public_api/v4/release.json
blob: 078b1c0b9820e0d63896422f31b53aefe649842d (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
31
32
33
34
35
36
{
  "type": "object",
  "required": ["name", "tag_name", "commit", "released_at"],
  "properties": {
    "name": { "type": "string" },
    "tag_name": { "type": "string" },
    "description": { "type": "string" },
    "description_html": { "type": "string" },
    "created_at": { "type": "date" },
    "released_at": { "type": "date" },
    "upcoming_release": { "type": "boolean" },
    "commit": {
      "oneOf": [{ "type": "null" }, { "$ref": "commit/basic.json" }]
    },
    "author": {
      "oneOf": [{ "type": "null" }, { "$ref": "user/basic.json" }]
    },
    "milestone": { "type": "string" },
    "assets": {
      "required": ["count", "links", "sources"],
      "properties": {
        "count": { "type": "integer" },
        "links": { "$ref": "../../release/links.json" },
        "sources": {
          "type": "array",
          "items": {
            "format": "zip",
            "url": "string"
          }
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}