kpi_schema.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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"},
  20. "kpisNumber": {"type": "string"},
  21. "councilElectedInRound": {"type": "number"},
  22. "councilMembers": {"type": "number"},
  23. "termLength": {
  24. "type": "object",
  25. "required": [
  26. "termLength",
  27. "startBlock",
  28. "endBlock",
  29. "startDate",
  30. "endDate"
  31. ],
  32. "properties": {
  33. "termLength": {"type": "string"},
  34. "startBlock": {"type": "number"},
  35. "endBlock": {"type": "number"},
  36. "startDate": {"type": "string", "format": "date"},
  37. "endDate": {"type": "string", "format": "date"}
  38. },
  39. "termSummariesForumThread": {"type": "string"},
  40. "deadlineToSubmitSummary": {
  41. "type": "object",
  42. "required": ["block", "deadlineDate"],
  43. "properties": {
  44. "block": {"type": "number"},
  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"},
  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": {"type": "string"},
  89. "active": {
  90. "type": "object",
  91. "required": ["active", "activeDate", "block"],
  92. "properties": {
  93. "active": {"type": "string"},
  94. "block": {"type": "number"},
  95. "activeDate": {"type": "string", "format": "date"}
  96. }
  97. },
  98. "purpose": {"type": "string"},
  99. "scopeOfWork": {
  100. "type": "array",
  101. "items": {
  102. "type": "object",
  103. "required": ["task"],
  104. "properties": {
  105. "task": {"type": "string"}
  106. }
  107. }
  108. },
  109. "rewardDistribution": {"type": "string"},
  110. "note": {"type": "string"},
  111. "grading": {"type": "string"},
  112. "reporting": {"type": "string"},
  113. "weighting": {
  114. "type": "array",
  115. "items": {
  116. "type": "object",
  117. "required": ["weight"],
  118. "properties": {
  119. "weight": {"type": "string"}
  120. }
  121. }
  122. }
  123. }
  124. }
  125. }
  126. }
  127. }
  128. }
  129. }
  130. }