board.json 2.57 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
{
  "type": "object",
  "required" : [
    "id",
    "name",
    "project",
    "milestone",
    "lists"
  ],
  "properties" : {
    "id": { "type": "integer" },
    "name": { "type": "string" },
    "project": {
      "type": "object",
      "required": [
        "id",
17
        "avatar_url",
18 19 20 21 22 23
        "description",
        "default_branch",
        "tag_list",
        "ssh_url_to_repo",
        "http_url_to_repo",
        "web_url",
24 25 26 27
        "name",
        "name_with_namespace",
        "path",
        "path_with_namespace",
28 29 30 31
        "star_count",
        "forks_count",
        "created_at",
        "last_activity_at"
32 33 34
      ],
      "properties": {
        "id": { "type": "integer" },
35
        "avatar_url": { "type": ["string", "null"] },
36 37 38 39 40 41
        "description": { "type": ["string", "null"] },
        "default_branch": { "type": ["string", "null"] },
        "tag_list": { "type": "array" },
        "ssh_url_to_repo": { "type": "string" },
        "http_url_to_repo": { "type": "string" },
        "web_url": { "type": "string" },
42 43 44 45
        "name": { "type": "string" },
        "name_with_namespace": { "type": "string" },
        "path": { "type": "string" },
        "path_with_namespace": { "type": "string" },
46 47 48 49
        "star_count": { "type": "integer" },
        "forks_count": { "type": "integer" },
        "created_at": { "type": "date" },
        "last_activity_at": { "type": "date" }
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
      },
      "additionalProperties": false
    },
    "milestone": {
      "type": ["object", "null"],
      "required": [
        "id",
        "title"
      ],
      "properties": {
        "id": { "type": "integer" },
        "title": { "type": "string" }
      },
      "additionalProperties": false
    },
    "lists": {
      "type": "array",
      "items": {
        "type": "object",
        "required" : [
          "id",
          "label",
          "position"
        ],
        "properties" : {
          "id": { "type": "integer" },
          "label": {
            "type": ["object", "null"],
            "required": [
              "id",
              "color",
              "description",
              "name"
            ],
            "properties": {
              "id": { "type": "integer" },
              "color": {
                "type": "string",
                "pattern": "^#[0-9A-Fa-f]{3}{1,2}+$"
              },
              "description": { "type": ["string", "null"] },
              "name": { "type": "string" }
            }
          },
          "position": { "type": ["integer", "null"] }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}