You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

issue.json 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. {
  2. "title": "Issue",
  3. "description": "Issues associated to a repository within a forge (Gitea, GitLab, etc.).",
  4. "type": "array",
  5. "items": {
  6. "type": "object",
  7. "additionalProperties": false,
  8. "properties": {
  9. "number": {
  10. "description": "Unique identifier, relative to the repository.",
  11. "type": "number"
  12. },
  13. "poster_id": {
  14. "description": "Unique identifier of the user who authored the issue.",
  15. "type": "number"
  16. },
  17. "poster_name": {
  18. "description": "Name of the user who authored the issue.",
  19. "type": "string"
  20. },
  21. "poster_email": {
  22. "description": "Email of the user who authored the issue.",
  23. "type": "string"
  24. },
  25. "title": {
  26. "description": "Short description displayed as the title.",
  27. "type": "string"
  28. },
  29. "content": {
  30. "description": "Long, multiline, description.",
  31. "type": "string"
  32. },
  33. "ref": {
  34. "description": "Target branch in the repository.",
  35. "type": "string"
  36. },
  37. "milestone": {
  38. "description": "Name of the milestone.",
  39. "type": "string"
  40. },
  41. "state": {
  42. "description": "A 'closed' issue will not see any activity in the future, otherwise it is 'open'.",
  43. "enum": [
  44. "closed",
  45. "open"
  46. ]
  47. },
  48. "is_locked": {
  49. "description": "A locked issue can only be modified by privileged users.",
  50. "type": "boolean"
  51. },
  52. "created": {
  53. "description": "Creation time.",
  54. "type": "string",
  55. "format": "date-time"
  56. },
  57. "updated": {
  58. "description": "Last update time.",
  59. "type": "string",
  60. "format": "date-time"
  61. },
  62. "closed": {
  63. "description": "The last time 'state' changed to 'closed'.",
  64. "anyOf": [
  65. {
  66. "type": "string",
  67. "format": "date-time"
  68. },
  69. {
  70. "type": "null"
  71. }
  72. ]
  73. },
  74. "labels": {
  75. "description": "List of labels.",
  76. "type": "array",
  77. "items": {
  78. "$ref": "label.json"
  79. }
  80. },
  81. "reactions": {
  82. "description": "List of reactions.",
  83. "type": "array",
  84. "items": {
  85. "$ref": "reaction.json"
  86. }
  87. },
  88. "assignees": {
  89. "description": "List of assignees.",
  90. "type": "array",
  91. "items": {
  92. "description": "Name of a user assigned to the issue.",
  93. "type": "string"
  94. }
  95. }
  96. },
  97. "required": [
  98. "number",
  99. "poster_id",
  100. "poster_name",
  101. "title",
  102. "content",
  103. "state",
  104. "is_locked",
  105. "created",
  106. "updated"
  107. ]
  108. },
  109. "$schema": "http://json-schema.org/draft-04/schema#",
  110. "$id": "http://example.com/issue.json",
  111. "$$target": "issue.json"
  112. }