Lexicon Migrations #7
Labels
No labels
breaking-change
bug
documentation
duplicate
enhancement
good first issue
help wanted
performance
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Grandiras/ATProto.NET#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lexicon Migrations
Support automatically updating lexicon entries when the model changes. Allows for easier iteration over lexicons during development and when adding new features.
Current State
The
atproto-lexgentool already supports bidirectional codegen (C# to Lexicon JSON and Lexicon JSON to C#), andLexiconDocumenthas aRevisionfield. But there is no migration/diff tracking yet.Implementation Plan
1.
lexicon diffcommandCompare the current assembly types against previously-generated Lexicon JSON files:
2. Schema evolution validation
Enforce AT Protocol Lexicon evolution rules:
3. Automatic revision bumping
When a non-breaking change is detected, auto-increment the
revisionfield in the Lexicon JSON.4. Migration report
Generate a human-readable migration report showing what changed between versions.
References
goat lexdiffing/linting in the reference TS SDK