Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 1.3 KB

File metadata and controls

19 lines (11 loc) · 1.3 KB

@atproto/lex-schema

Runtime schema system for AT Protocol Lexicons. This is what the TypeScript code generated by lex build is built on, and it provides the l namespace for declaring schemas by hand.

Schemas expose validation helpers ($parse, $validate, $matches, $assert, …) and implement the Standard Schema interface.

This is a building block of @atproto/lex, which re-exports it — prefer depending on that package.

License

This project is dual-licensed under MIT and Apache 2.0 terms:

Downstream projects and end users may chose either license individually, or both together, at their discretion. The motivation for this dual-licensing is the additional software patent assurance provided by Apache 2.0.