A better Rust ATProto crate
1{
2 "lexicon": 1,
3 "id": "test.ns3.collision",
4 "description": "Cross-namespace test: defines local Foo AND references test.ns1.defs#foo (collision + cross-ref).",
5 "defs": {
6 "main": {
7 "type": "object",
8 "description": "An object with both a local Foo ref and a cross-namespace Foo ref.",
9 "required": ["localFoo", "externalFoo"],
10 "properties": {
11 "localFoo": {
12 "type": "ref",
13 "ref": "#foo"
14 },
15 "externalFoo": {
16 "type": "ref",
17 "ref": "test.ns1.defs#foo"
18 },
19 "note": {
20 "type": "string"
21 }
22 }
23 },
24 "foo": {
25 "type": "object",
26 "description": "A locally-defined Foo that shares a name with test.ns1.defs#foo.",
27 "required": ["localId"],
28 "properties": {
29 "localId": {
30 "type": "integer"
31 },
32 "label": {
33 "type": "string",
34 "maxLength": 100
35 }
36 }
37 }
38 }
39}