70 lines
1.5 KiB
JSON
70 lines
1.5 KiB
JSON
{
|
|
"title": "Milestone",
|
|
"description": "Milestone relative to a project, for the purpose of grouping objects due to a given date (issues, etc.).",
|
|
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"index": {
|
|
"description": "Unique identifier.",
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"description": "Short description.",
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"description": "Long 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' milestone will not see any activity in the future, otherwise it is 'open'.",
|
|
"enum": [
|
|
"closed",
|
|
"open"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"index",
|
|
"title",
|
|
"description",
|
|
"deadline",
|
|
"created",
|
|
"updated",
|
|
"closed",
|
|
"state"
|
|
],
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"$id": "https://lab.forgefriends.org/friendlyforgeformat/f3-schemas/-/blob/v1.0/milestone.json",
|
|
"$$target": "milestone.json"
|
|
}
|