summaryrefslogtreecommitdiffstats
path: root/modules/migration/schemas/milestone.json
blob: 7024ef45d0d808d45fb4ae8d6dbf37f43ec2cf4c (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
    "title": "Milestone",
    "description": "Milestone associated to a repository within a forge.",

    "type": "array",
    "items": {
	"type": "object",
	"additionalProperties": false,
	"properties": {
	    "title": {
		"description": "Short description.",
		"type": "string"
	    },
	    "description": {
		"description": "Long, multiline, description.",
		"type": "string"
	    },
	    "deadline": {
		"description": "Deadline after which the milestone is overdue.",
		"type": "string",
		"format": "date-time"
	    },
	    "created": {
		"description": "Creation time.",
		"type": "string",
		"format": "date-time"
	    },
	    "updated": {
		"description": "Last update time.",
		"type": "string",
		"format": "date-time"
	    },
	    "closed": {
		"description": "The last time 'state' changed to 'closed'.",
		"anyOf": [
		    {
			"type": "string",
			"format": "date-time"
		    },
		    {
			"type": "null"
		    }
		]
	    },
	    "state": {
		"description": "A 'closed' issue will not see any activity in the future, otherwise it is 'open'.",
		"enum": [
		    "closed",
		    "open"
		]
	    }
	},
	"required": [
	    "title",
	    "description",
	    "deadline",
	    "created",
	    "updated",
	    "closed",
	    "state"
	]
    },

    "$schema": "http://json-schema.org/draft-04/schema#",
    "$id": "http://example.com/milestone.json",
    "$$target": "milestone.json"
}