@atproto/lexicon 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atproto/lexicon
2
2
 
3
+ ## 0.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`41ee177f`](https://github.com/bluesky-social/atproto/commit/41ee177f5a440490280d17acd8a89bcddaffb23b)]:
8
+ - @atproto/common-web@0.2.1
9
+ - @atproto/syntax@0.1.2
10
+
3
11
  ## 0.2.1
4
12
 
5
13
  ### Patch Changes
package/README.md CHANGED
@@ -1,10 +1,9 @@
1
- # Lexicon
1
+ # @atproto/lexicon: schema validation library
2
2
 
3
- Lexicon is the semantic schemas & contracts system for ATP. This library provides definitions and APIs for ATP software.
3
+ TypeScript implementation of the Lexicon data and API schema description language, which is part of [atproto](https://atproto.com).
4
4
 
5
- ```
6
- npm install @atproto/lexicon
7
- ```
5
+ [![NPM](https://img.shields.io/npm/v/@atproto/lexicon)](https://www.npmjs.com/package/@atproto/lexicon)
6
+ [![Github CI Status](https://github.com/bluesky-social/atproto/actions/workflows/repo.yaml/badge.svg)](https://github.com/bluesky-social/atproto/actions/workflows/repo.yaml)
8
7
 
9
8
  ## Usage
10
9
 
@@ -29,3 +28,7 @@ lex.assertValidXrpcParams('com.example.query', {...})
29
28
  lex.assertValidXrpcInput('com.example.procedure', {...})
30
29
  lex.assertValidXrpcOutput('com.example.query', {...})
31
30
  ```
31
+
32
+ ## License
33
+
34
+ MIT
package/dist/index.js CHANGED
@@ -14628,7 +14628,7 @@ var lexObject = z.object({
14628
14628
  description: z.string().optional(),
14629
14629
  required: z.string().array().optional(),
14630
14630
  nullable: z.string().array().optional(),
14631
- properties: z.record(z.union([lexRefVariant, lexIpldType, lexArray, lexBlob, lexPrimitive])).optional()
14631
+ properties: z.record(z.union([lexRefVariant, lexIpldType, lexArray, lexBlob, lexPrimitive]))
14632
14632
  }).strict().superRefine(requiredPropertiesRefinement);
14633
14633
  var lexXrpcParameters = z.object({
14634
14634
  type: z.literal("params"),