Skip to content

Commit

Permalink
Add lease restrictions for NTS (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
edmolyneux authored Feb 7, 2024
1 parent 194da34 commit 6a337cb
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 6 deletions.
4 changes: 4 additions & 0 deletions src/examples/v3/exampleTransaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@
"details": "There is sinking fund."
}
},
"leaseRestrictions": {
"yesNo": "Yes",
"details": "No pets allowed"
},
"additionalFeesOnSale": 0
}
}
Expand Down
44 changes: 42 additions & 2 deletions src/schemas/v3/combined.json
Original file line number Diff line number Diff line change
Expand Up @@ -3423,7 +3423,8 @@
"sharedOwnership",
"leaseTerm",
"groundRent",
"serviceCharge"
"serviceCharge",
"leaseRestrictions"
],
"ta7Required": [
"sharedOwnership",
Expand Down Expand Up @@ -6393,6 +6394,45 @@
}
]
},
"leaseRestrictions": {
"ntsRef": "A3.6",
"title": "Are there restrictions imposed by the lease?",
"type": "object",
"properties": {
"yesNo": {
"ntsRef": "A3.6.1",
"type": "string",
"title": "",
"enum": ["Yes", "No"]
}
},
"ntsRequired": ["yesNo"],
"discriminator": {
"propertyName": "yesNo"
},
"oneOf": [
{
"properties": {
"yesNo": {
"enum": ["No"]
}
}
},
{
"properties": {
"yesNo": {
"enum": ["Yes"]
},
"details": {
"ntsRef": "A3.6.2",
"title": "Details",
"type": "string"
}
},
"ntsRequired": ["details"]
}
]
},
"buildingsInsurance": {
"lpe1Ref": "5",
"title": "Buildings Insurance",
Expand Down Expand Up @@ -18238,10 +18278,10 @@
"ta10Ref": "11",
"title": "Other items",
"type": "object",
"ta10Required": ["otherItems"],
"properties": {
"otherItems": {
"title": "",
"ta10Ref": "11.1",
"type": "array",
"items": {
"type": "object",
Expand Down
43 changes: 42 additions & 1 deletion src/schemas/v3/overlays/nts.json
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@
"sharedOwnership",
"leaseTerm",
"groundRent",
"serviceCharge"
"serviceCharge",
"leaseRestrictions"
],
"properties": {
"sharedOwnership": {
Expand Down Expand Up @@ -484,6 +485,46 @@
"ntsRef": "A3.5.1"
}
}
},
"leaseRestrictions": {
"ntsRef": "A3.6",
"discriminator": {
"propertyName": "yesNo"
},
"oneOf": [
{
"properties": {
"yesNo": {
"enum": [
"No"
]
}
}
},
{
"properties": {
"yesNo": {
"enum": [
"Yes"
]
},
"details": {
"ntsRef": "A3.6.2"
}
},
"required": [
"details"
]
}
],
"required": [
"yesNo"
],
"properties": {
"yesNo": {
"ntsRef": "A3.6.1"
}
}
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/schemas/v3/overlays/ta10.json
Original file line number Diff line number Diff line change
Expand Up @@ -6219,11 +6219,9 @@
},
"otherItems": {
"ta10Ref": "11",
"required": [
"otherItems"
],
"properties": {
"otherItems": {
"ta10Ref": "11.1",
"items": {
"required": [
"itemName",
Expand Down
38 changes: 38 additions & 0 deletions src/schemas/v3/pdtf-transaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -5582,6 +5582,44 @@
}
]
},
"leaseRestrictions": {
"title": "Are there restrictions imposed by the lease?",
"type": "object",
"properties": {
"yesNo": {
"type": "string",
"title": "",
"enum": [
"Yes",
"No"
]
}
},
"oneOf": [
{
"properties": {
"yesNo": {
"enum": [
"No"
]
}
}
},
{
"properties": {
"yesNo": {
"enum": [
"Yes"
]
},
"details": {
"title": "Details",
"type": "string"
}
}
}
]
},
"buildingsInsurance": {
"title": "Buildings Insurance",
"type": "object",
Expand Down
4 changes: 4 additions & 0 deletions src/schemas/v3/skeleton.json
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,10 @@
"details": {}
}
},
"leaseRestrictions": {
"yesNo": {},
"details": {}
},
"buildingsInsurance": {
"premiumsPaidUpToDate": {
"yesNo": {},
Expand Down

0 comments on commit 6a337cb

Please sign in to comment.