-
-
Notifications
You must be signed in to change notification settings - Fork 73
/
4_nested.schema.json
57 lines (57 loc) · 2.6 KB
/
4_nested.schema.json
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
{
"parser_settings": {
"version": "omni.2.1",
"file_format_type": "fixedlength2"
},
"file_declaration": {
"envelopes": [
{
"name": "HDR", "header": "^HDR", "min": 1, "max": 1,
"child_envelopes": [
{
"name": "GRH", "header": "^GRH",
"child_envelopes": [
{
"name": "NWR", "header": "^NWR", "is_target": true,
"columns": [ { "name": "title", "start_pos": 20, "length": 60 } ],
"child_envelopes": [
{
"name": "SPU", "header": "^SPU",
"columns": [ { "name": "publisher_name", "start_pos": 31, "length": 45 } ],
"child_envelopes": [
{
"name": "SPT", "header": "^SPT",
"columns": [ { "name": "territory_id", "start_pos": 51, "length": 4 } ]
}
]
},
{
"name": "SWR", "header": "^SWR",
"columns": [
{ "name": "writer_id", "start_pos": 20, "length": 9 },
{ "name": "last_name", "start_pos": 29, "length": 45 }
],
"child_envelopes": [
{
"name": "SWT", "header": "^SWT",
"columns": [ { "name": "territory_id", "start_pos": 45, "length": 4 } ]
}
]
}
]
},
{ "name": "GRT", "header": "^GRT" }
]
},
{ "name": "TRL", "header": "^TRL" }
]
}
]
},
"transform_declarations": {
"FINAL_OUTPUT": { "custom_func": {
"name": "javascript_with_context",
"args": [ { "const": "JSON.parse(_node);" } ]
}}
}
}