Debian Codegraph @

third_party/rust/serde_with/tests/schemars_0_8/schemars_basic.json

raw
1 {
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "title": "Basic",
4 "type": "object",
5 "required": [
6 "bare_field",
7 "box_same",
8 "display_from_str",
9 "same",
10 "vec_same"
11 ],
12 "properties": {
13 "bare_field": {
14 "description": "Basic field, no attribute",
15 "type": "integer",
16 "format": "uint32",
17 "minimum": 0.0
18 },
19 "box_same": {
20 "description": "This checks that Same still works when wrapped in a box.",
21 "type": "integer",
22 "format": "uint32",
23 "minimum": 0.0
24 },
25 "display_from_str": {
26 "description": "Field that directly uses DisplayFromStr",
27 "type": "string"
28 },
29 "same": {
30 "description": "Same does not implement JsonSchema directly so this checks that the correct schemars attribute was injected.",
31 "type": "integer",
32 "format": "uint32",
33 "minimum": 0.0
34 },
35 "vec_same": {
36 "description": "Same thing, but with a Vec this time.",
37 "type": "array",
38 "items": {
39 "type": "integer",
40 "format": "uint32",
41 "minimum": 0.0
42 }
43 }
44 }
45 }