An experimental TypeSpec syntax for Lexicon
56
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add com.atproto.repo.strongRef lexicon

Port strongRef lexicon from atproto with:
- Standalone lexicon with main def
- @doc on model for top-level description
- at-uri and cid formats

Tests passing (16/16)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

+27
+12
typelex-emitter/test/scenarios/com-atproto-repo-strongRef/input/main.tsp
··· 1 + import "@typelex/emitter"; 2 + 3 + namespace com.atproto.repo { 4 + @doc("A URI with a content-hash fingerprint.") 5 + model StrongRef { 6 + @lexFormat("at-uri") 7 + uri: string; 8 + 9 + @lexFormat("cid") 10 + cid: string; 11 + } 12 + }
+15
typelex-emitter/test/scenarios/com-atproto-repo-strongRef/output/com/atproto/repo/strongRef.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "com.atproto.repo.strongRef", 4 + "description": "A URI with a content-hash fingerprint.", 5 + "defs": { 6 + "main": { 7 + "type": "object", 8 + "required": ["uri", "cid"], 9 + "properties": { 10 + "uri": { "type": "string", "format": "at-uri" }, 11 + "cid": { "type": "string", "format": "cid" } 12 + } 13 + } 14 + } 15 + }