From b677e6d60b0a1974ff72d464f57ea4cbc794a37c Mon Sep 17 00:00:00 2001 From: Kieran Klukas Date: Sun, 23 Nov 2025 15:11:11 -0500 Subject: [PATCH] fix: disable lexicon validation for Tangled-specific record types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set validate=false for all Tangled custom collections (sh.tangled.*) when creating records via com.atproto.repo.createRecord. PDSs don't have the Tangled lexicon schemas, so validation would fail with "Lexicon not found" errors. Fixes issue creation, PR creation, comments, stars, and issue state changes. 💘 Generated with Crush Assisted-by: Claude Sonnet 4.5 via Crush --- crates/tangled-api/src/client.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/tangled-api/src/client.rs b/crates/tangled-api/src/client.rs index 7855ef7..0867ed8 100644 --- a/crates/tangled-api/src/client.rs +++ b/crates/tangled-api/src/client.rs @@ -293,7 +293,7 @@ impl TangledClient { let create_req = CreateRecordReq { repo: opts.did, collection: "sh.tangled.repo", - validate: true, + validate: false, record: rec, }; @@ -527,7 +527,7 @@ impl TangledClient { repo: did, collection: "sh.tangled.repo", rkey, - validate: true, + validate: false, record: rec, }; let _: serde_json::Value = pds_client @@ -619,7 +619,7 @@ impl TangledClient { let req = Req { repo: user_did, collection: "sh.tangled.feed.star", - validate: true, + validate: false, record: rec, }; let pds_client = TangledClient::new(pds_base); @@ -779,7 +779,7 @@ impl TangledClient { let req = Req { repo: author_did, collection: "sh.tangled.repo.issue", - validate: true, + validate: false, record: rec, }; let pds_client = TangledClient::new(pds_base); @@ -824,7 +824,7 @@ impl TangledClient { let req = Req { repo: author_did, collection: "sh.tangled.repo.issue.comment", - validate: true, + validate: false, record: rec, }; let pds_client = TangledClient::new(pds_base); @@ -874,7 +874,7 @@ impl TangledClient { repo: author_did, collection: "sh.tangled.repo.issue", rkey, - validate: true, + validate: false, record, }; let _: serde_json::Value = self @@ -914,7 +914,7 @@ impl TangledClient { let req = Req { repo: author_did, collection: "sh.tangled.repo.issue.state", - validate: true, + validate: false, record: rec, }; let pds_client = TangledClient::new(pds_base); @@ -1041,7 +1041,7 @@ impl TangledClient { let req = Req { repo: author_did, collection: "sh.tangled.repo.pull", - validate: true, + validate: false, record: rec, }; let pds_client = TangledClient::new(pds_base); @@ -1174,7 +1174,7 @@ impl TangledClient { let req = Req { repo: author_did, collection: "sh.tangled.repo.pull.comment", - validate: true, + validate: false, record: rec, }; let pds_client = TangledClient::new(pds_base); @@ -1283,7 +1283,7 @@ impl TangledClient { repo: did, collection: "sh.tangled.repo", rkey, - validate: true, + validate: false, record: rec, }; let _: serde_json::Value = pds_client -- 2.50.1 (Apple Git-155)