A better Rust ATProto crate
1{
2 "lexicon": 1,
3 "id": "test.collision.option",
4 "description": "Test fixture that defines a local type named Option, which collides with std Option in serde skip_serializing_if paths.",
5 "defs": {
6 "main": {
7 "type": "object",
8 "description": "An object with optional fields, exercising the Option::is_none path collision.",
9 "required": ["choice"],
10 "properties": {
11 "choice": {
12 "type": "ref",
13 "ref": "#option"
14 },
15 "description": {
16 "type": "string",
17 "maxLength": 500
18 }
19 }
20 },
21 "option": {
22 "type": "object",
23 "description": "A locally-defined type named Option, colliding with std::option::Option.",
24 "required": ["key", "value"],
25 "properties": {
26 "key": {
27 "type": "string",
28 "maxLength": 100
29 },
30 "value": {
31 "type": "string",
32 "maxLength": 500
33 }
34 }
35 }
36 }
37}