From 8079afe37ce859174fc907c7e10818cfb41d0711 Mon Sep 17 00:00:00 2001 From: Bretton Date: Sun, 19 Oct 2025 16:26:59 -0700 Subject: [PATCH] refactor: update lexicon to use .community. naming convention MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update AT Protocol lexicon schema and test data to use singular .community. instead of .communities. in handle format. Changes: - Update profile.json lexicon schema with new handle pattern - Update test fixtures to use singular convention - Update lexicon validation tests This aligns with AT Protocol naming standards where all record types use singular form (e.g., app.bsky.feed.post, app.bsky.graph.follow). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- internal/atproto/lexicon/social/coves/community/profile.json | 2 +- tests/lexicon-test-data/community/profile-valid.json | 2 +- tests/lexicon_validation_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/atproto/lexicon/social/coves/community/profile.json b/internal/atproto/lexicon/social/coves/community/profile.json index 096f49a..0d88908 100644 --- a/internal/atproto/lexicon/social/coves/community/profile.json +++ b/internal/atproto/lexicon/social/coves/community/profile.json @@ -14,7 +14,7 @@ "type": "string", "maxLength": 253, "format": "handle", - "description": "atProto handle (e.g., gaming.communities.coves.social) - DNS-resolvable name for this community" + "description": "atProto handle (e.g., gaming.community.coves.social) - DNS-resolvable name for this community" }, "name": { "type": "string", diff --git a/tests/lexicon-test-data/community/profile-valid.json b/tests/lexicon-test-data/community/profile-valid.json index feddb8a..8606e86 100644 --- a/tests/lexicon-test-data/community/profile-valid.json +++ b/tests/lexicon-test-data/community/profile-valid.json @@ -1,6 +1,6 @@ { "$type": "social.coves.community.profile", - "handle": "programming.communities.coves.social", + "handle": "programming.community.coves.social", "name": "programming", "displayName": "Programming Community", "description": "A community for programmers", diff --git a/tests/lexicon_validation_test.go b/tests/lexicon_validation_test.go index c65d4bc..ac175ec 100644 --- a/tests/lexicon_validation_test.go +++ b/tests/lexicon_validation_test.go @@ -123,7 +123,7 @@ func TestValidateRecord(t *testing.T) { recordType: "social.coves.community.profile", recordData: map[string]interface{}{ "$type": "social.coves.community.profile", - "handle": "programming.communities.coves.social", + "handle": "programming.community.coves.social", "name": "programming", "displayName": "Programming Community", "createdBy": "did:plc:creator123", -- 2.51.2