diff --git a/examples/data/planningPermission/major.ts b/examples/data/planningPermission/major.ts index f3019c32..77131639 100644 --- a/examples/data/planningPermission/major.ts +++ b/examples/data/planningPermission/major.ts @@ -433,6 +433,7 @@ export const planningPermissionMajor: Schema = { surfaceWaterDisposal: 'drainageSystem', }, units: { + total: 25, residential: [ { type: {value: 'house', description: 'House'}, @@ -442,7 +443,7 @@ export const planningPermissionMajor: Schema = { }, { type: {value: 'house', description: 'House'}, - tenure: 'MH', + tenure: {value: 'MH', description: 'Market housing'}, bedrooms: 4, identicalUnits: 5, }, @@ -457,7 +458,10 @@ export const planningPermissionMajor: Schema = { }, { type: {value: 'house', description: 'House'}, - tenure: 'SAIR', + tenure: { + value: 'SAIR', + description: 'Social, affordable or interim rent', + }, bedrooms: 2, identicalUnits: 2, }, diff --git a/examples/data/planningPermission/minor.ts b/examples/data/planningPermission/minor.ts index 4f73a964..bfa7a990 100644 --- a/examples/data/planningPermission/minor.ts +++ b/examples/data/planningPermission/minor.ts @@ -269,6 +269,7 @@ export const planningPermissionMinor: Schema = { boundary: 'white painted timber', }, units: { + total: 1, residential: [ { type: {value: 'house', description: 'House'}, diff --git a/examples/planningPermission/major.json b/examples/planningPermission/major.json index 6217595f..51677903 100644 --- a/examples/planningPermission/major.json +++ b/examples/planningPermission/major.json @@ -703,6 +703,7 @@ "surfaceWaterDisposal": "drainageSystem" }, "units": { + "total": 25, "residential": [ { "type": { @@ -721,7 +722,10 @@ "value": "house", "description": "House" }, - "tenure": "MH", + "tenure": { + "value": "MH", + "description": "Market housing" + }, "bedrooms": 4, "identicalUnits": 5 }, @@ -742,7 +746,10 @@ "value": "house", "description": "House" }, - "tenure": "SAIR", + "tenure": { + "value": "SAIR", + "description": "Social, affordable or interim rent" + }, "bedrooms": 2, "identicalUnits": 2 } diff --git a/examples/planningPermission/minor.json b/examples/planningPermission/minor.json index 9352fb1e..f2f6cb0f 100644 --- a/examples/planningPermission/minor.json +++ b/examples/planningPermission/minor.json @@ -286,6 +286,7 @@ "boundary": "white painted timber" }, "units": { + "total": 1, "residential": [ { "type": { diff --git a/schema/schema.json b/schema/schema.json index 54f57ee7..e2492d1d 100644 --- a/schema/schema.json +++ b/schema/schema.json @@ -23755,9 +23755,13 @@ "type": "object" }, "type": "array" + }, + "total": { + "type": "number" } }, "required": [ + "total", "residential" ], "type": "object" diff --git a/types/schema/data/shared.ts b/types/schema/data/shared.ts index c9e019a8..75aa44aa 100644 --- a/types/schema/data/shared.ts +++ b/types/schema/data/shared.ts @@ -35,6 +35,7 @@ type OSRoadsSource = { }; export type ResidentialUnits = { + total: number; residential: { type: UKResidentialUnitType; tenure: UKTenureType;