Repository navigation
Expand file tree
/
Copy pathproposals.schema.json
More file actions
142 lines (142 loc) · 5.09 KB
/
Copy pathproposals.schema.json
File metadata and controls
142 lines (142 loc) · 5.09 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/WebAssembly/proposals/raw/main/proposals.schema.json",
"title": "WebAssembly proposals",
"description": "WebAssembly proposals and their phases. README.md, finished-proposals.md, and inactive-proposals.md are generated from this data by generate_markdown.py.",
"type": "object",
"definitions": {
"name": {
"description": "Name of the proposal.",
"type": "string",
"minLength": 1
},
"url": {
"description": "Link to the proposal's repository or overview document.",
"type": "string",
"format": "uri",
"pattern": "^https://"
},
"champions": {
"description": "The proposal's champions.",
"type": "array",
"items": { "type": "string", "minLength": 1 },
"minItems": 1,
"uniqueItems": true
},
"active-proposal": {
"description": "A proposal in phases 1 through 5 that has not been merged into the spec yet.",
"type": "object",
"properties": {
"name": { "$ref": "#/definitions/name" },
"url": { "$ref": "#/definitions/url" },
"phase": { "enum": [1, 2, 3, 4, 5] },
"champions": { "$ref": "#/definitions/champions" }
},
"required": ["name", "url", "phase", "champions"],
"additionalProperties": false
},
"finished-proposal": {
"description": "A proposal that has been merged into the spec.",
"type": "object",
"properties": {
"name": { "$ref": "#/definitions/name" },
"url": { "$ref": "#/definitions/url" },
"phase": { "const": "finished" },
"champions": { "$ref": "#/definitions/champions" },
"meeting_notes": {
"description": "The WG meeting at which the proposal was accepted into the spec.",
"type": "object",
"properties": {
"date": {
"description": "Date of the meeting, as YYYY-MM-DD.",
"type": "string",
"format": "date",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"url": {
"description": "Link to the meeting notes.",
"type": "string",
"format": "uri",
"pattern": "^https://"
}
},
"required": ["date", "url"],
"additionalProperties": false
},
"affected_specs": {
"description": "The specifications changed by the proposal.",
"type": "array",
"items": { "enum": ["core", "js-api", "web-api"] },
"minItems": 1,
"uniqueItems": true
},
"spec_version": {
"description": "Version of the spec that first included the proposal, e.g. \"3.0\".",
"type": "string",
"pattern": "^\\d+\\.\\d+$"
}
},
"required": [
"name",
"url",
"phase",
"champions",
"meeting_notes",
"affected_specs",
"spec_version"
],
"additionalProperties": false
},
"inactive-proposal": {
"description": "A proposal that was abandoned, withdrawn, or rejected.",
"type": "object",
"properties": {
"name": { "$ref": "#/definitions/name" },
"url": { "$ref": "#/definitions/url" },
"phase": { "const": "inactive" },
"champions": { "$ref": "#/definitions/champions" },
"rationale": {
"description": "Why the proposal is inactive. May contain inline Markdown, such as links.",
"type": "string",
"minLength": 1
}
},
"required": ["name", "url", "phase", "champions", "rationale"],
"additionalProperties": false
},
"proposal": {
"description": "A WebAssembly proposal. The fields it needs depend on its phase.",
"type": "object",
"properties": {
"phase": {
"description": "Phase of the proposal, as defined in https://github.com/WebAssembly/meetings/blob/main/process/phases.md. \"finished\" means the proposal has been merged into the spec, and \"inactive\" means it was abandoned, withdrawn, or rejected.",
"enum": [1, 2, 3, 4, 5, "finished", "inactive"]
}
},
"if": {
"properties": { "phase": { "const": "finished" } },
"required": ["phase"]
},
"then": { "$ref": "#/definitions/finished-proposal" },
"else": {
"if": {
"properties": { "phase": { "const": "inactive" } },
"required": ["phase"]
},
"then": { "$ref": "#/definitions/inactive-proposal" },
"else": { "$ref": "#/definitions/active-proposal" }
}
}
},
"properties": {
"$schema": { "type": "string", "format": "uri-reference" },
"proposals": {
"description": "Proposals keyed by ID. The ID is used as the Markdown link reference in the generated files. Each generated table lists its proposals in the order they appear here.",
"type": "object",
"propertyNames": { "pattern": "^[A-Za-z0-9_-]+$" },
"additionalProperties": { "$ref": "#/definitions/proposal" }
}
},
"required": ["proposals"],
"additionalProperties": false
}