Debian Codegraph @

examples/validate.schema.json

raw symbols SCIP
1 {
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "title": "MyStruct",
4 "type": "object",
5 "properties": {
6 "my_bool": {
7 "type": "boolean"
8 },
9 "my_int": {
10 "type": "integer",
11 "format": "int32",
12 "maximum": 10,
13 "minimum": 1
14 },
15 "my_nullable_enum": {
16 "oneOf": [
17 {
18 "type": "object",
19 "properties": {
20 "StringNewType": {
21 "type": "string",
22 "format": "email"
23 }
24 },
25 "additionalProperties": false,
26 "required": [
27 "StringNewType"
28 ]
29 },
30 {
31 "type": "object",
32 "properties": {
33 "StructVariant": {
34 "type": "object",
35 "properties": {
36 "floats": {
37 "type": "array",
38 "items": {
39 "type": "number",
40 "format": "float"
41 },
42 "maxItems": 100,
43 "minItems": 1
44 }
45 },
46 "required": [
47 "floats"
48 ]
49 }
50 },
51 "additionalProperties": false,
52 "required": [
53 "StructVariant"
54 ]
55 }
56 ]
57 }
58 },
59 "required": [
60 "my_int",
61 "my_bool",
62 "my_nullable_enum"
63 ]
64 }