-
Notifications
You must be signed in to change notification settings - Fork 0
/
FixedDepositSchema.json
54 lines (54 loc) · 1.97 KB
/
FixedDepositSchema.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"id": "http://nerdcats.io/schema/bank/fixeddeposit",
"title": "FixedDepositSchema",
"description": "A schema to define fixed deposit offerings from different banks",
"properties": {
"id": {
"title": "id",
"type": "string",
"description": "Unique identitification to define fixed deposit schema"
},
"BankName": {
"title": "BankName",
"type": "string",
"description": "The name of the bank",
"validationMessage": "Bank name is required!"
},
"InterestRate": {
"title": "InterestRate",
"type": "number",
"description": "Annual rate of interest offered"
},
"CompoundedInterestFrequency": {
"title": "CompoundedInterestFrequency",
"description": "Compounded interest frequency stands for the frequency of interest accrument annually",
"type": "number"
},
"TimeSpan": {
"title": "TimeSpan",
"type": "object",
"description": "Time span of fixed deposit, usually a range defined by from and to property. Both from and to fields are number. The unit is years. So if it is 3 months, the number would be 0.25",
"properties": {
"from": {
"title": "from",
"type": "number",
"description": "The number of years after the fixed deposit gets mature."
},
"to": {
"title": "to",
"type": "number",
"description": "The number of years before the next tenor of fixed deposit starts."
}
},
"required": ["from"]
}
},
"required": [
"BankName",
"InterestRate",
"CompoundedInterestFrequency",
"TimeSpan"
]
}