Skip to content

Commit

Permalink
feat: add discussion link and discourse category to space schema (#1092)
Browse files Browse the repository at this point in the history
* feat: add discussion link and discourse category to space schema

* rename discussionLink to discussions

* Update src/schemas/space.json

* v0.12.34
  • Loading branch information
ChaituVR authored Dec 5, 2024
1 parent 1c33db9 commit 0a9d3ff
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snapshot-labs/snapshot.js",
"version": "0.12.33",
"version": "0.12.34",
"repository": "snapshot-labs/snapshot.js",
"license": "MIT",
"main": "dist/snapshot.cjs.js",
Expand Down
11 changes: 11 additions & 0 deletions src/schemas/space.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,17 @@
"maxLength": 64,
"format": "domain"
},
"discussions": {
"type": "string",
"format": "uri",
"title": "Discussions link",
"maxLength": 256
},
"discourseCategory": {
"type": "integer",
"minimum": 1,
"title": "Discourse category"
},
"strategies": {
"type": "array",
"minItems": 1,
Expand Down
2 changes: 2 additions & 0 deletions test/examples/space.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"network": "1",
"plugins": {},
"twitter": "lootproject",
"discussions": "https://discuss.ens.domains/",
"discourseCategory": 28,
"domain": "vote.lootproject.abc",
"strategies": [
{
Expand Down

0 comments on commit 0a9d3ff

Please sign in to comment.