Debian Codegraph @

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

raw
1 {
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "title": "Test",
4 "type": "object",
5 "required": [
6 "flexible_string",
7 "frac",
8 "seconds",
9 "seconds_u64_strict",
10 "time_i64"
11 ],
12 "properties": {
13 "flexible_string": {
14 "oneOf": [
15 {
16 "writeOnly": true,
17 "type": "number",
18 "minimum": 0.0
19 },
20 {
21 "type": "string",
22 "pattern": "^[0-9]+(\\.[0-9]+)?([eE][+-]?[0-9]+)?$"
23 }
24 ]
25 },
26 "frac": {
27 "oneOf": [
28 {
29 "type": "number",
30 "minimum": 0.0
31 },
32 {
33 "writeOnly": true,
34 "type": "string",
35 "pattern": "^[0-9]+(\\.[0-9]+)?([eE][+-]?[0-9]+)?$"
36 }
37 ]
38 },
39 "seconds": {
40 "oneOf": [
41 {
42 "type": "number",
43 "minimum": 0.0
44 },
45 {
46 "writeOnly": true,
47 "type": "string",
48 "pattern": "^[0-9]+(\\.[0-9]+)?([eE][+-]?[0-9]+)?$"
49 }
50 ]
51 },
52 "seconds_u64_strict": {
53 "type": "integer",
54 "format": "uint64",
55 "minimum": 0.0
56 },
57 "time_i64": {
58 "oneOf": [
59 {
60 "type": "number"
61 },
62 {
63 "writeOnly": true,
64 "type": "string",
65 "pattern": "^-?[0-9]+(\\.[0-9]+)?([eE][+-]?[0-9]+)?$"
66 }
67 ]
68 }
69 }
70 }