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.defs lexicon

Port repo.defs with commitMeta definition:
- Defs lexicon (no @doc on model)
- cid and tid formats

Tests passing (17/17)

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

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

+25
+11
typelex-emitter/test/scenarios/com-atproto-repo-defs/input/main.tsp
··· 1 + import "@typelex/emitter"; 2 + 3 + namespace com.atproto.repo { 4 + model CommitMeta { 5 + @lexFormat("cid") 6 + cid: string; 7 + 8 + @lexFormat("tid") 9 + rev: string; 10 + } 11 + }
+14
typelex-emitter/test/scenarios/com-atproto-repo-defs/output/com/atproto/repo/defs.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "com.atproto.repo.defs", 4 + "defs": { 5 + "commitMeta": { 6 + "type": "object", 7 + "required": ["cid", "rev"], 8 + "properties": { 9 + "cid": { "type": "string", "format": "cid" }, 10 + "rev": { "type": "string", "format": "tid" } 11 + } 12 + } 13 + } 14 + }