kpi_schema.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. {
  2. "$schema": "https://json-schema.org/draft/2019-09/schema",
  3. "title": "Joystream KPI schema",
  4. "type": "object",
  5. "required": ["overviewSection", "sections"],
  6. "properties": {
  7. "overviewSection": {
  8. "type": "object",
  9. "required": [
  10. "title",
  11. "kpisNumber",
  12. "councilElectedInRound",
  13. "councilMembers",
  14. "termLength",
  15. "termSummariesForumThread",
  16. "deadlineToSubmitSummary"
  17. ],
  18. "properties": {
  19. "title": {"type": "string", "maxLength": 16},
  20. "kpisNumber": {"type": "string", "maxLength": 10},
  21. "councilElectedInRound": {"type": "number", "min": 0, "max": 1024},
  22. "councilMembers": {"type": "number", "min": 1, "max": 1024},
  23. "termLength": {
  24. "type": "object",
  25. "required": [
  26. "termLength",
  27. "startBlock",
  28. "endBlock",
  29. "startDate",
  30. "endDate"
  31. ],
  32. "properties": {
  33. "termLength": {"type": "string", "maxLength": 32},
  34. "startBlock": {"type": "string", "maxLength": 16},
  35. "endBlock": {"type": "string", "maxLength": 16},
  36. "startDate": {"type": "string", "format": "date"},
  37. "endDate": {"type": "string", "format": "date"}
  38. },
  39. "termSummariesForumThread": {"type": "string", "maxLength": 1024},
  40. "deadlineToSubmitSummary": {
  41. "type": "object",
  42. "required": ["block", "deadlineDate"],
  43. "properties": {
  44. "block": {"type": "string", "maxLength": 16},
  45. "deadlineDate": {"type": "string", "format": "date"}
  46. }
  47. }
  48. }
  49. }
  50. },
  51. "sections": {
  52. "type": "array",
  53. "minItems": 1,
  54. "items": {
  55. "type": "object",
  56. "required": ["sectionTitle", "sectionDescription", "kpis"],
  57. "properties": {
  58. "sectionTitle": {"type": "string", "maxLength": 1024},
  59. "sectionDescription": {"type": "string"},
  60. "kpis": {
  61. "type": "array",
  62. "minItems": 1,
  63. "items": {
  64. "type": "object",
  65. "required": [
  66. "kpiTitle",
  67. "reward",
  68. "active",
  69. "purpose",
  70. "scopeOfWork",
  71. "rewardDistribution",
  72. "note",
  73. "grading"
  74. ],
  75. "properties": {
  76. "kpiTitle": {"type": "string"},
  77. "reward": {
  78. "type": "object",
  79. "required": ["rewardLine", "rewardDescription"],
  80. "properties": {
  81. "rewardLine": {"type": "string"},
  82. "rewardDescription": {"type": "string"}
  83. }
  84. },
  85. "rewardStructure": {
  86. "const": "Individual"
  87. },
  88. "gradingProcess": {
  89. "type": "string",
  90. "enum": [
  91. "Manual",
  92. "Automatic"
  93. ]
  94. },
  95. "active": {
  96. "type": "object",
  97. "required": ["active"],
  98. "properties": {
  99. "active": {"type": "string", "maxLength": 16},
  100. "block": {"type": "number"},
  101. "startBlock": {"type": "string", "maxLength": 16},
  102. "endBlock": {"type": "string", "maxLength": 16},
  103. "activeDate": {"type": "string", "format": "date"}
  104. }
  105. },
  106. "purpose": {"type": "string"},
  107. "scopeOfWork": {
  108. "type": "array",
  109. "items": {
  110. "type": "object",
  111. "required": ["task"],
  112. "properties": {
  113. "task": {"type": "string"}
  114. }
  115. }
  116. },
  117. "rewardDistribution": {"type": "string"},
  118. "note": {"type": "string"},
  119. "grading": {"type": "string"},
  120. "reporting": {"type": "string"},
  121. "weighting": {
  122. "type": "array",
  123. "items": {
  124. "type": "object",
  125. "required": ["weight"],
  126. "properties": {
  127. "weight": {"type": "string"}
  128. }
  129. }
  130. }
  131. }
  132. }
  133. }
  134. }
  135. }
  136. }
  137. }
  138. }