-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmeta.json
More file actions
45 lines (45 loc) · 1.85 KB
/
Copy pathmeta.json
File metadata and controls
45 lines (45 loc) · 1.85 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
{
"metadata.root": {
"package": "acme::auth",
"children": [
{ "object.entity": {
"name": "Account",
"children": [
{ "source.rdb": { "@table": "accounts" } },
{ "field.long": { "name": "id" } },
{ "field.string": { "name": "name", "@required": true, "@maxLength": 10 } },
{ "field.string": { "name": "code", "children": [
{ "validator.length": { "@min": 3 } },
{ "validator.regex": { "@pattern": "[A-Z]+" } }
] } },
{ "field.int": { "name": "score", "children": [
{ "validator.numeric": { "@min": 0, "@max": 100 } }
] } },
{ "field.string": { "name": "tags", "isArray": true, "children": [
{ "validator.array": { "@min": 1, "@max": 3 } }
] } },
{ "field.string": { "name": "label", "@maxLength": 8, "children": [
{ "validator.length": { "@max": 4 } }
] } },
{ "field.string": { "name": "note", "@required": true, "children": [
{ "validator.length": { "@min": 0 } }
] } },
{ "field.uri": { "name": "website" } },
{ "field.inet": { "name": "sourceIp" } },
{ "field.uri": { "name": "citationUrl", "@lenient": true } },
{ "field.inet": { "name": "reportedIp", "@lenient": true } },
{ "identity.primary": { "name": "id", "@fields": "id", "@generation": "increment" } }
]
}},
{ "object.entity": {
"name": "Ledger",
"children": [
{ "source.rdb": { "@table": "ledgers" } },
{ "field.string": { "name": "code" } },
{ "field.string": { "name": "label", "@required": true } },
{ "identity.primary": { "name": "pk", "@fields": "code" } }
]
}}
]
}
}