Skip to content

Lexicon vs JSON Schema #2102

Jan 27, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

One of the more awkward parts of using JSON schema (well over a year ago) in atproto was that it was difficult to express open unions of objects and strings. Being able to express this is pretty common/important to us, since we want folks to be able to spec apps that can maintain forward- and backward-compatibility as much as possible, in such a low-coordination environment. Being able to additionally discriminate those open unions in an explicit, namespaced way goes a step further in the same direction. In a way we're sleeping on the value of these areas of lexicon while things are limited to schemas for a single app.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bnewbold
Comment options

@devinivy
Comment options

Answer selected by bnewbold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants