Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

257 строки
9.5KB

  1. {
  2. "$schema": "https://json-schema.org/draft/2020-12/schema",
  3. "$id": "https://example.invalid/c64-c128-foundry/project-brief-1.0.schema.json",
  4. "title": "C64/C128 Dev Foundry project brief",
  5. "description": "Structural schema for briefs (drafts and approved). Semantic rules (conflicts, cross-references, approval) are enforced by tools/Test-FoundryBrief.ps1; see docs/brief-format.md.",
  6. "type": "object",
  7. "required": ["schemaVersion", "status", "project"],
  8. "properties": {
  9. "schemaVersion": { "const": "1.0" },
  10. "status": { "enum": ["draft", "approved"] },
  11. "approval": {
  12. "type": ["object", "null"],
  13. "properties": {
  14. "approvedBy": { "type": "string" },
  15. "approvedOn": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" },
  16. "notes": { "type": "string" }
  17. }
  18. },
  19. "interview": {
  20. "type": ["object", "null"],
  21. "properties": {
  22. "startedOn": { "type": "string" },
  23. "stage": { "enum": ["idea", "target", "first-release", "details", "toolchain", "plan", "destination", "review"] },
  24. "openQuestions": { "type": "array", "items": { "type": "string" } },
  25. "notes": { "type": "array", "items": { "type": "string" } }
  26. }
  27. },
  28. "project": {
  29. "type": "object",
  30. "properties": {
  31. "name": { "type": "string", "maxLength": 60 },
  32. "slug": { "type": "string" },
  33. "idea": { "type": "string" },
  34. "summary": { "type": "string" },
  35. "kind": { "enum": ["", "game", "utility", "demo", "tool", "education", "other"] },
  36. "smallestUsefulVersion": { "type": "string" }
  37. }
  38. },
  39. "destination": { "type": "string" },
  40. "targets": { "type": "array", "items": { "$ref": "#/$defs/target" } },
  41. "dualTarget": {
  42. "type": ["object", "null"],
  43. "properties": {
  44. "strategy": { "enum": ["c64-mode-on-both", "native-per-target", "multi-display"] },
  45. "notes": { "type": "string" }
  46. }
  47. },
  48. "buildLocation": { "enum": ["windows-cross", "on-commodore"] },
  49. "onCommodore": {
  50. "type": ["object", "null"],
  51. "properties": {
  52. "targetTool": { "type": "string" },
  53. "transfer": { "type": "string" },
  54. "diskFormat": { "enum": ["d64", "d71", "d81"] },
  55. "programName": { "type": "string", "maxLength": 16 }
  56. }
  57. },
  58. "testing": {
  59. "type": "object",
  60. "properties": {
  61. "emulator": { "const": "vice" },
  62. "realHardware": {
  63. "type": "object",
  64. "properties": { "requested": { "type": "boolean" }, "reason": { "type": "string" } }
  65. }
  66. }
  67. },
  68. "scope": {
  69. "type": "object",
  70. "properties": {
  71. "firstRelease": { "type": "string" },
  72. "inScope": { "type": "array", "items": { "type": "string" } },
  73. "outOfScope": { "type": "array", "items": { "type": "string" } }
  74. }
  75. },
  76. "requirements": {
  77. "type": "array",
  78. "items": {
  79. "type": "object",
  80. "required": ["id"],
  81. "properties": {
  82. "id": { "type": "string", "pattern": "^R\\d+$" },
  83. "title": { "type": "string" },
  84. "priority": { "enum": ["must", "should", "could"] },
  85. "text": { "type": "string" },
  86. "acceptance": { "type": "array", "items": { "type": "string" } },
  87. "capabilities": { "type": "array", "items": { "$ref": "#/$defs/capability" } }
  88. }
  89. }
  90. },
  91. "design": {
  92. "type": "object",
  93. "properties": {
  94. "controls": { "$ref": "#/$defs/decision" },
  95. "visuals": { "$ref": "#/$defs/decision" },
  96. "sound": { "$ref": "#/$defs/decision" },
  97. "persistence": { "$ref": "#/$defs/decision" },
  98. "fileFormats": { "$ref": "#/$defs/decision" },
  99. "peripherals": { "$ref": "#/$defs/decision" },
  100. "budgets": { "$ref": "#/$defs/decision" },
  101. "other": { "type": "array", "items": { "allOf": [{ "$ref": "#/$defs/decision" }, { "required": ["topic"] }] } }
  102. }
  103. },
  104. "capabilities": { "type": "array", "items": { "$ref": "#/$defs/capability" } },
  105. "assumptions": {
  106. "type": "array",
  107. "items": {
  108. "type": "object",
  109. "properties": { "id": { "type": "string" }, "text": { "type": "string" }, "status": { "enum": ["default", "unverified", "confirmed"] } }
  110. }
  111. },
  112. "openDecisions": {
  113. "type": "array",
  114. "items": {
  115. "type": "object",
  116. "properties": { "id": { "type": "string" }, "topic": { "type": "string" }, "question": { "type": "string" }, "default": { "type": "string" }, "status": { "enum": ["open", "resolved"] } }
  117. }
  118. },
  119. "toolchain": {
  120. "type": ["object", "null"],
  121. "properties": {
  122. "recipe": { "enum": ["cc65", "basic-petcat", "basic-onboard", "asm-onboard"] },
  123. "language": { "$ref": "#/$defs/language" },
  124. "recommended": {
  125. "type": "object",
  126. "properties": { "recipe": { "type": "string" }, "language": { "$ref": "#/$defs/language" } }
  127. },
  128. "reasons": { "type": "array", "items": { "type": "string" } },
  129. "alternatives": {
  130. "type": "array",
  131. "items": { "type": "object", "properties": { "option": { "type": "string" }, "whyNot": { "type": "string" } } }
  132. },
  133. "override": {
  134. "type": ["object", "null"],
  135. "properties": {
  136. "requestedLanguage": { "$ref": "#/$defs/language" },
  137. "requestedBy": { "type": "string" },
  138. "reason": { "type": "string" },
  139. "accepted": { "type": "boolean" }
  140. }
  141. },
  142. "assumptionsToVerify": { "type": "array", "items": { "type": "string" } }
  143. }
  144. },
  145. "starter": {
  146. "type": ["object", "null"],
  147. "properties": {
  148. "screenTitle": { "type": "string", "maxLength": 38 },
  149. "expectedScreen": { "type": "string" },
  150. "filesDir": { "type": "string" },
  151. "requirements": { "type": "array", "items": { "type": "string" } },
  152. "smokeChecks": {
  153. "type": "array",
  154. "items": {
  155. "type": "object",
  156. "required": ["row", "col", "text"],
  157. "properties": {
  158. "row": { "type": "integer", "minimum": 0, "maximum": 24 },
  159. "col": { "type": "integer", "minimum": 0, "maximum": 79 },
  160. "text": { "type": "string" },
  161. "description": { "type": "string" },
  162. "targets": { "type": "array", "items": { "type": "string" } }
  163. }
  164. }
  165. }
  166. }
  167. },
  168. "milestones": {
  169. "type": "array",
  170. "items": {
  171. "type": "object",
  172. "properties": {
  173. "id": { "type": "string", "pattern": "^M[1-9]\\d*$" },
  174. "title": { "type": "string" },
  175. "goal": { "type": "string" },
  176. "tasks": {
  177. "type": "array",
  178. "items": {
  179. "type": "object",
  180. "properties": {
  181. "id": { "type": "string" },
  182. "text": { "type": "string" },
  183. "requirements": { "type": "array", "items": { "type": "string" } },
  184. "outcome": { "type": "string" },
  185. "check": { "type": "string" }
  186. }
  187. }
  188. },
  189. "manualTests": {
  190. "type": "array",
  191. "items": {
  192. "type": "object",
  193. "properties": {
  194. "id": { "type": "string" },
  195. "title": { "type": "string" },
  196. "target": { "type": "string" },
  197. "setup": { "type": "string" },
  198. "steps": { "type": "array", "items": { "type": "string" } },
  199. "expected": { "type": "array", "items": { "type": "string" } },
  200. "requirements": { "type": "array", "items": { "type": "string" } }
  201. }
  202. }
  203. }
  204. }
  205. }
  206. }
  207. },
  208. "$defs": {
  209. "capability": { "enum": ["text-ui", "keyboard-input", "joystick-input", "disk-seq-io", "sprites", "custom-charset", "sid-sound", "smooth-animation", "raster-interrupts", "vdc-80col", "mouse-1351"] },
  210. "language": { "enum": ["basic-v2", "basic-7", "c", "asm-ca65", "mixed-c-asm", "asm-onboard"] },
  211. "decision": {
  212. "type": "object",
  213. "properties": {
  214. "topic": { "type": "string" },
  215. "value": { "type": "string" },
  216. "source": { "enum": ["user", "default", "n/a", "open"] }
  217. }
  218. },
  219. "target": {
  220. "type": "object",
  221. "properties": {
  222. "id": { "type": "string" },
  223. "name": { "type": "string" },
  224. "platform": { "enum": ["c64", "c128-native", "c128-c64mode"] },
  225. "display": { "enum": ["vicii-40", "vdc-80"] },
  226. "video": { "enum": ["pal", "ntsc", "pal-ntsc"] },
  227. "artifact": { "type": "string" },
  228. "expectedBehavior": { "type": "string" },
  229. "autostart": { "enum": ["prg", "disk"] },
  230. "smokeLimitCycles": { "type": "integer", "minimum": 1000000 },
  231. "disk": {
  232. "type": ["object", "null"],
  233. "properties": {
  234. "name": { "type": "string" },
  235. "format": { "enum": ["d64", "d71", "d81"] },
  236. "image": { "type": "string" },
  237. "files": {
  238. "type": "array",
  239. "items": {
  240. "type": "object",
  241. "required": ["source", "name"],
  242. "properties": {
  243. "source": { "type": "string" },
  244. "name": { "type": "string", "maxLength": 16 },
  245. "type": { "enum": ["prg", "seq"] },
  246. "convert": { "enum": [null, "ascii-to-petscii"] },
  247. "lineEndings": { "enum": ["cr", "keep"] }
  248. }
  249. }
  250. }
  251. }
  252. }
  253. }
  254. }
  255. }
  256. }

Powered by TurnKey Linux.