-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathrecord.json
More file actions
82 lines (82 loc) · 2.35 KB
/
record.json
File metadata and controls
82 lines (82 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[
{
"avroSchema": {
"type": "record",
"name": "LongList",
"aliases": ["LinkedLongs"],
"fields": [
{
"name": "value",
"type": "long"
},
{
"name": "next",
"type": ["LongList", "null"]
}
]
},
"jsonSchema": {
"$ref": "#/definitions/record:LongList",
"definitions": {
"record:LongList": {
"type": "object",
"additionalProperties": false,
"required": [ "value" ],
"properties": {
"value": {
"type": "integer",
"minimum": -9223372036854775808,
"maximum": 9223372036854775807
},
"next": {
"oneOf": [
{ "$ref": "#/definitions/record:LongList" },
{ "type": "null" }
]
}
}
}
}
}
},
{
"avroSchema": {
"type": "record",
"name": "foo",
"fields": []
},
"jsonSchema": {
"$ref": "#/definitions/record:foo",
"definitions": {
"record:foo": { "enum": [ {} ] }
}
}
},
{
"avroSchema": {
"type": "record",
"name": "bar",
"fields": [
{ "name": "moo", "type": "int", "default": -1 }
]
},
"jsonSchema": {
"$ref": "#/definitions/record:bar",
"definitions": {
"record:bar": {
"type": "object",
"required": [ "moo" ],
"additionalProperties": false,
"properties": {
"moo": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647,
"default": -1
}
}
}
}
}
}
]