A better Rust ATProto crate
1{
2 "lexicon": 1,
3 "id": "test.collision.collection",
4 "description": "Test fixture that defines a local type named Collection, which collides with jacquard_common::types::collection::Collection trait.",
5 "defs": {
6 "main": {
7 "type": "record",
8 "description": "A record that itself references the Collection trait via its NSID.",
9 "key": "tid",
10 "record": {
11 "type": "object",
12 "required": ["name", "items"],
13 "properties": {
14 "name": {
15 "type": "string",
16 "maxLength": 256
17 },
18 "items": {
19 "type": "array",
20 "items": {
21 "type": "ref",
22 "ref": "#collection"
23 }
24 },
25 "createdAt": {
26 "type": "string",
27 "format": "datetime"
28 }
29 }
30 }
31 },
32 "collection": {
33 "type": "object",
34 "description": "A locally-defined type named Collection that collides with the trait import.",
35 "required": ["label"],
36 "properties": {
37 "label": {
38 "type": "string",
39 "maxLength": 100
40 },
41 "count": {
42 "type": "integer",
43 "minimum": 0
44 }
45 }
46 }
47 }
48}