-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinvalid-packet.json
More file actions
74 lines (74 loc) · 1.99 KB
/
invalid-packet.json
File metadata and controls
74 lines (74 loc) · 1.99 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
{
"inputSchema": {
"type": "object",
"properties": {
"id": { "type": "number" },
"firstName": { "type": "string" },
"lastName": { "type": "string" },
"email": { "type": "string", "format": "email" },
"street": { "type": "string" },
"city": { "type": "string" },
"zipCode": { "type": "string" }
},
"required": ["id", "firstName", "lastName", "email", "street", "city", "zipCode"]
},
"outputSchema": {
"type": "object",
"properties": {
"personId": { "type": "number" },
"name": {
"type": "object",
"properties": {
"first": { "type": "string" },
"last": { "type": "string" }
},
"required": ["first", "last"]
},
"contact": {
"type": "object",
"properties": {
"email": { "type": "string", "format": "email" }
},
"required": ["email"]
},
"address": {
"type": "object",
"properties": {
"street": { "type": "string" },
"city": { "type": "string" },
"zip": { "type": "string" }
},
"required": ["street", "city", "zip"]
}
},
"required": ["personId", "name", "contact", "address"]
},
"decoderRules": {
"personId": { "var": "id" },
"name.first": { "var": "firstName" },
"name.last": { "var": "lastName" },
"contact.email": { "var": "email" },
"address.street": { "var": "street" },
"address.city": { "var": "city" },
"address.zip": { "var": "zipCode" }
},
"encoderRules": {
"id": { "var": "personId" },
"firstName": { "var": "name.first" },
"lastName": { "var": "name.last" },
"email": { "var": "contact.email" },
"street": { "var": "address.street" },
"city": { "var": "address.city" },
"zipCode": { "var": "address.zip" }
},
"data": [
{
"id": 1,
"firstName": "John",
"lastName": "Doe",
"street": "123 Main St",
"city": "Anytown",
"zipCode": "12345"
}
]
}