summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/release.json
blob: 234b82c5306f5bc1234b32577ca9a28f1a93da81 (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"],
  "properties": {
    "name": { "type": "string" },
    "tag_name": { "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": {
        "type": "array",
        "items": {
          "name": "string",
          "url": "string",
          "external": "boolean"
        }
      },
      "sources": {
        "type": "array",
        "items": {
          "format": "zip",
          "url": "string"
        }
      }
    }
  },
  "additionalProperties": false
}