summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/issue.json
blob: 666e0cdf82cf7eb274cb2a403affd0323a28bc2a (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" : [
    "id",
    "title",
    "confidential"
  ],
  "properties" : {
    "id": { "type": "integer" },
    "title": { "type": "string" },
    "confidential": { "type": "boolean" },
    "labels": {
      "type": ["array"],
      "required": [
        "id",
        "color",
        "title"
      ],
      "properties": {
        "id": { "type": "integer" },
        "color": {
          "type": "string",
          "pattern": "^#[0-9A-Fa-f]{3}{1,2}+$"
        },
        "title": { "type": "string" }
      }
    }
  },
  "additionalProperties": false
}