From 45ee665587bd95b7dedd450e3837669bbc9a4869 Mon Sep 17 00:00:00 2001 From: ChaituVR Date: Tue, 3 Dec 2024 20:05:12 +0530 Subject: [PATCH 1/4] feat: add discussion link and discourse category to space schema --- src/schemas/space.json | 11 +++++++++++ test/examples/space.json | 2 ++ 2 files changed, 13 insertions(+) diff --git a/src/schemas/space.json b/src/schemas/space.json index 9c4e41d7b..6d2d3a1e3 100644 --- a/src/schemas/space.json +++ b/src/schemas/space.json @@ -107,6 +107,17 @@ "maxLength": 64, "format": "domain" }, + "discussionLink": { + "type": "string", + "format": "uri", + "title": "Discussion link", + "maxLength": 256 + }, + "discourseCategory": { + "type": "integer", + "minimum": 1, + "title": "Discourse category" + }, "strategies": { "type": "array", "minItems": 1, diff --git a/test/examples/space.json b/test/examples/space.json index 6087b8c34..4db72d62a 100644 --- a/test/examples/space.json +++ b/test/examples/space.json @@ -16,6 +16,8 @@ "network": "1", "plugins": {}, "twitter": "lootproject", + "discussionLink": "https://discuss.ens.domains/", + "discourseCategory": 28, "domain": "vote.lootproject.abc", "strategies": [ { From 98e592a7101a970b6c0d4c74883654c8696ed970 Mon Sep 17 00:00:00 2001 From: ChaituVR Date: Tue, 3 Dec 2024 20:33:07 +0530 Subject: [PATCH 2/4] rename discussionLink to discussions --- src/schemas/space.json | 2 +- test/examples/space.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/schemas/space.json b/src/schemas/space.json index 6d2d3a1e3..c60f48682 100644 --- a/src/schemas/space.json +++ b/src/schemas/space.json @@ -107,7 +107,7 @@ "maxLength": 64, "format": "domain" }, - "discussionLink": { + "discussions": { "type": "string", "format": "uri", "title": "Discussion link", diff --git a/test/examples/space.json b/test/examples/space.json index 4db72d62a..5f464bc4b 100644 --- a/test/examples/space.json +++ b/test/examples/space.json @@ -16,7 +16,7 @@ "network": "1", "plugins": {}, "twitter": "lootproject", - "discussionLink": "https://discuss.ens.domains/", + "discussions": "https://discuss.ens.domains/", "discourseCategory": 28, "domain": "vote.lootproject.abc", "strategies": [ From acf3506e7e1bf020984b0648ba3d406aa0f159f9 Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Tue, 3 Dec 2024 20:33:55 +0530 Subject: [PATCH 3/4] Update src/schemas/space.json --- src/schemas/space.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schemas/space.json b/src/schemas/space.json index c60f48682..93ae7168b 100644 --- a/src/schemas/space.json +++ b/src/schemas/space.json @@ -110,7 +110,7 @@ "discussions": { "type": "string", "format": "uri", - "title": "Discussion link", + "title": "Discussions link", "maxLength": 256 }, "discourseCategory": { From 8a558c975da7da8bf60070b9c970d8ffaefa3776 Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Thu, 5 Dec 2024 23:38:23 +0530 Subject: [PATCH 4/4] v0.12.34 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c60464f8a..bafa45b7b 100644 --- a/package.json +++ b/package.json @@ -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",