Debian Codegraph @

third_party/rust/serde_with/tests/schemars_0_8/snapshots/pickfirst_nested.json

raw
1 {
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "title": "OneOrMany(PickFirst(uint32String),PreferOne)",
4 "anyOf": [
5 {
6 "$ref": "#/definitions/PickFirst(uint32String)"
7 },
8 {
9 "type": "array",
10 "items": {
11 "$ref": "#/definitions/PickFirst(uint32String)"
12 }
13 }
14 ],
15 "definitions": {
16 "PickFirst(uint32String)": {
17 "anyOf": [
18 {
19 "type": "integer",
20 "format": "uint32",
21 "minimum": 0.0
22 },
23 {
24 "writeOnly": true,
25 "allOf": [
26 {
27 "type": "string"
28 }
29 ]
30 }
31 ]
32 }
33 }
34 }