Skip to content

Commit

Permalink
scheme update- mainly switch const to enum
Browse files Browse the repository at this point in the history
  • Loading branch information
gilgardosh committed Sep 27, 2020
1 parent f114c68 commit e8a49e8
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions src/schemas/accountDataSchema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"additionalItems": false,
"minItems": 1,
"items": [
{
Expand All @@ -12,7 +13,8 @@
"enum": [12]
},
"extendedBankNumber": {
"const": 912
"type": "integer",
"enum": [912]
},
"branchNumber": {
"type": "integer",
Expand All @@ -25,42 +27,52 @@
"maximun": 99999
},
"partyPreferredIndication": {
"const": 0
"type": "integer",
"enum": [0]
},
"partyAccountInvolvementCode": {
"type": "integer",
"enum": [1, 201]
},
"accountDealDate": {
"const": 0
"type": "integer",
"enum": [0]
},
"accountUpdateDate": {
"const": 0
"type": "integer",
"enum": [0]
},
"metegDoarNet": {
"const": 0
"type": "integer",
"enum": [0, 1]
},
"kodHarshaatPeilut": {
"const": 3
"type": "integer",
"enum": [1, 3]
},
"accountClosingReasonCode": {
"const": 0
"type": "integer",
"enum": [0]
},
"productLabel": {
"description": "Branch number with account number and two spaces in between",
"type": "string"
},
"accountAgreementOpeningDate": {
"const": 0
"type": "integer",
"enum": [0]
},
"serviceAuthorizationDesc": {
"const": "לא חתום"
"type": "string",
"enum": ["לא חתום", "פעולות ומידע"]
},
"branchTypeCode": {
"const": 0
"type": "integer",
"enum": [0, 2]
},
"mymailEntitlementSwitch": {
"const": 0
"type": "integer",
"enum": [0, 1]
}
},
"required": [
Expand All @@ -76,6 +88,7 @@
"kodHarshaatPeilut",
"accountClosingReasonCode",
"productLabel",
"accountAgreementOpeningDate",
"serviceAuthorizationDesc",
"branchTypeCode",
"mymailEntitlementSwitch"
Expand Down

0 comments on commit e8a49e8

Please sign in to comment.