1{
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "title": "Account (ACCTREC, AR-ACCOUNT)",
4 "type": "object",
5 "required": ["acctNo", "acctStatus", "balance", "openDate", "holds"],
6 "properties": {
7 "acctNo": { "type": "string", "maxLength": 12, "x-cobol": "X(12) @0 len 12" },
8 "acctStatus": { "enum": ["A", "C", "F"], "x-cobol": "X(1) @12, 88-levels verified" },
9 "balance": {
10 "type": "string", "pattern": "^-?\\d{1,11}\\.\\d{2}$",
11 "x-cobol": "S9(11)V99 COMP-3 @13 len 7"
12 },
13 "openDate": { "type": "string", "format": "date", "x-cobol": "9(8) yyyymmdd @20" },
14 "holds": {
15 "type": "array", "maxItems": 5,
16 "x-cobol": "OCCURS 0 TO 5 DEPENDING ON AR-HOLD-COUNT (S9(4) COMP @28) @30",
17 "items": {
18 "type": "object",
19 "properties": {
20 "holdAmt": { "type": "string", "pattern": "^-?\\d{1,7}\\.\\d{2}$", "x-cobol": "S9(7)V99 COMP-3 len 5" },
21 "holdReason": { "type": "string", "maxLength": 2 }
22 }
23 }
24 }
25 }
26}