-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprd.schema.json
More file actions
117 lines (117 loc) · 3.55 KB
/
Copy pathprd.schema.json
File metadata and controls
117 lines (117 loc) · 3.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://evolith.dev/schema/prd.schema.json",
"title": "Product Requirements Document",
"description": "JSON Schema for validating Evolith PRD artifacts. Required in Phase 1 before design begins.",
"type": "object",
"required": ["title", "productOwner", "date", "scope", "goals", "personas", "constraints", "nonFunctionalRequirements"],
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "PRD title clearly identifying the product or initiative."
},
"productOwner": {
"type": "string",
"description": "Name of the accountable Product Owner."
},
"date": {
"type": "string",
"format": "date",
"description": "Date when PRD was approved. ISO 8601 format."
},
"status": {
"type": "string",
"enum": ["Draft", "Under Review", "Approved", "Superseded"],
"default": "Draft"
},
"scope": {
"type": "object",
"required": ["inScope", "outOfScope"],
"additionalProperties": false,
"properties": {
"inScope": {
"type": "array",
"items": { "type": "string" },
"minItems": 1
},
"outOfScope": {
"type": "array",
"items": { "type": "string" }
}
}
},
"goals": {
"type": "array",
"items": {
"type": "object",
"required": ["goal", "metric"],
"additionalProperties": false,
"properties": {
"goal": { "type": "string" },
"metric": { "type": "string" },
"targetDate": { "type": "string", "format": "date" }
}
},
"minItems": 1,
"description": "Business goals with measurable metrics."
},
"personas": {
"type": "array",
"items": {
"type": "object",
"required": ["name", "role", "painPoints"],
"additionalProperties": false,
"properties": {
"name": { "type": "string" },
"role": { "type": "string" },
"painPoints": {
"type": "array",
"items": { "type": "string" },
"minItems": 1
}
}
},
"minItems": 1,
"description": "Target user personas for this product."
},
"constraints": {
"type": "array",
"items": { "type": "string" },
"description": "Technical, budget, timeline, and regulatory constraints."
},
"nonFunctionalRequirements": {
"type": "array",
"items": {
"type": "object",
"required": ["requirement", "category", "threshold"],
"additionalProperties": false,
"properties": {
"requirement": { "type": "string" },
"category": {
"type": "string",
"enum": ["Performance", "Security", "Scalability", "Availability", "Compliance"]
},
"threshold": { "type": "string" }
}
},
"description": "NFRs with measurable thresholds."
},
"relatedADRs": {
"type": "array",
"items": { "type": "string" },
"description": "ADR IDs that constrain or enable this PRD."
},
"approvalEvidence": {
"type": "object",
"required": ["approver", "approvalDate"],
"additionalProperties": false,
"properties": {
"approver": { "type": "string" },
"approvalDate": { "type": "string", "format": "date" },
"meetingNotes": { "type": "string", "format": "uri" }
},
"description": "Evidence of business sign-off required for Phase 1 gate."
}
}
}