-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lexicon support #140
Lexicon support #140
Conversation
It turns out the specification on AT Protocol's website is severely outdated. I now use their source code to infer the correct Lexicon interfaces specification, which is more complicated than the one presented on their website. |
4e2cf43
to
91ae412
Compare
Solves a conflict with the other JSON-based format: JSON Schema. Still a lot of work to do though.
Generate a type for each input and output.
91ae412
to
385fa44
Compare
I think I misunderstood. The main definition is not necessarily a |
Add `tldr:Bytes` for byte strings. Add `tldr:CID` for CID links (for now just a `String`).
The Lexicon spec defines media types ( |
This PR adds supports for AT Protocol's Lexicon schema definition format. It focuses on importing Lexicon documents as TreeLDR layouts.
This will be very similar to the JSON Schema implementation (hopefully better than that since I learned a lot since I implemented JSON Schemas).
Implementation plan
treeldr-lexicon
libraryload
library to recognize lexicon filestreeldr-json-schema
to usejson-syntax
and notserde-json
, to be compatible withtreeldr-lexicon
and have better error handlingMedia types: Image, Video, AudioTokens support