96 lines
2.3 KiB
JSON
96 lines
2.3 KiB
JSON
{
|
|
"title": "Issue",
|
|
"description": "An issue within an issue tracking system, relative to a project.",
|
|
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"index": {
|
|
"description": "Unique identifier of the issue.",
|
|
"type": "string"
|
|
},
|
|
"poster_id": {
|
|
"description": "Unique identifier of the user who authored the issue.",
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"description": "Short description displayed as the title.",
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"description": "Description of the issue.",
|
|
"type": "string"
|
|
},
|
|
"milestone": {
|
|
"description": "Unique identifier of the milestone.",
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"description": "An issue is 'closed' when it is resolved, 'open' otherwise. Issues that do not relate to a topic that needs to be resolved, such as an open conversation, may never be closed.",
|
|
"enum": [
|
|
"closed",
|
|
"open"
|
|
]
|
|
},
|
|
"is_locked": {
|
|
"description": "A locked issue can only be modified by privileged users. It is commonly used for moderation purposes when comments associated with the issue are too heated.",
|
|
"type": "boolean"
|
|
},
|
|
"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'.",
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"due": {
|
|
"description": "Due date.",
|
|
"type": "string",
|
|
"format": "date"
|
|
},
|
|
"labels": {
|
|
"description": "List of label unique identifiers.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"description": "List of reactions.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "reaction.json"
|
|
}
|
|
},
|
|
"assignees": {
|
|
"description": "List of assignees.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Name of a user assigned to the issue.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"index",
|
|
"poster_id",
|
|
"title",
|
|
"content",
|
|
"state",
|
|
"is_locked",
|
|
"created",
|
|
"updated"
|
|
],
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/issue.json",
|
|
"$$target": "issue.json"
|
|
}
|