Skip to content

Commit 0a9d3ff

Browse files
authored
feat: add discussion link and discourse category to space schema (#1092)
* feat: add discussion link and discourse category to space schema * rename discussionLink to discussions * Update src/schemas/space.json * v0.12.34
1 parent 1c33db9 commit 0a9d3ff

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@snapshot-labs/snapshot.js",
3-
"version": "0.12.33",
3+
"version": "0.12.34",
44
"repository": "snapshot-labs/snapshot.js",
55
"license": "MIT",
66
"main": "dist/snapshot.cjs.js",

src/schemas/space.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,17 @@
107107
"maxLength": 64,
108108
"format": "domain"
109109
},
110+
"discussions": {
111+
"type": "string",
112+
"format": "uri",
113+
"title": "Discussions link",
114+
"maxLength": 256
115+
},
116+
"discourseCategory": {
117+
"type": "integer",
118+
"minimum": 1,
119+
"title": "Discourse category"
120+
},
110121
"strategies": {
111122
"type": "array",
112123
"minItems": 1,

test/examples/space.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
"network": "1",
1717
"plugins": {},
1818
"twitter": "lootproject",
19+
"discussions": "https://discuss.ens.domains/",
20+
"discourseCategory": 28,
1921
"domain": "vote.lootproject.abc",
2022
"strategies": [
2123
{

0 commit comments

Comments
 (0)