Skip to content

Commit

Permalink
chore: better data.proposal.details examples (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak authored Oct 16, 2023
1 parent da2302b commit e7fc3a7
Show file tree
Hide file tree
Showing 8 changed files with 316 additions and 4 deletions.
1 change: 1 addition & 0 deletions examples/data/ldcE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ export const validLDCE: Schema = {
squareMetres: 2993.67,
},
},
date: {},
},
},
result: [
Expand Down
8 changes: 8 additions & 0 deletions examples/data/ldcP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,14 @@ export const validLDCP: Schema = {
squareMetres: 1418.26,
},
},
date: {},
details: {
extend: {
area: {
squareMetres: 24,
},
},
},
},
},
result: [
Expand Down
147 changes: 147 additions & 0 deletions examples/data/planningPermission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,16 @@ export const validPlanningPermission: Schema = {
squareMetres: 125.92,
},
},
date: {
start: '2024-05-01',
completion: '2024-05-02',
},
details: {
extend: {
area: {
squareMetres: 45,
},
},
vehicleParking: {
type: [
{
Expand All @@ -260,6 +269,144 @@ export const validPlanningPermission: Schema = {
description: 'Off-street parking for bicycles',
},
],
cars: {
count: {
existing: 1,
proposed: 1,
},
offStreet: {
count: {
existing: 0,
proposed: 0,
},
club: {
count: {
existing: 0,
proposed: 0,
},
},
disabled: {
count: {
existing: 0,
proposed: 0,
},
},
other: {
count: {
existing: 0,
proposed: 0,
},
},
residents: {
count: {
existing: 1,
proposed: 1,
},
},
},
onStreet: {
count: {
existing: 0,
proposed: 0,
},
club: {
count: {
existing: 0,
proposed: 0,
},
},
disabled: {
count: {
existing: 0,
proposed: 0,
},
},
other: {
count: {
existing: 0,
proposed: 0,
},
},
residents: {
count: {
existing: 0,
proposed: 0,
},
},
},
},
vans: {
count: {
existing: 0,
proposed: 0,
},
offStreet: {
count: {
existing: 0,
proposed: 0,
},
},
onStreet: {
count: {
existing: 0,
proposed: 0,
},
},
},
motorcycles: {
count: {
existing: 0,
proposed: 0,
},
offStreet: {
count: {
existing: 0,
proposed: 0,
},
},
onStreet: {
count: {
existing: 0,
proposed: 0,
},
},
},
bicycles: {
count: {
existing: 2,
proposed: 2,
},
offStreet: {
count: {
existing: 2,
proposed: 2,
},
},
onStreet: {
count: {
existing: 0,
proposed: 0,
},
},
},
buses: {
count: {
existing: 0,
proposed: 0,
},
offStreet: {
count: {
existing: 0,
proposed: 0,
},
},
onStreet: {
count: {
existing: 0,
proposed: 0,
},
},
},
},
},
},
Expand Down
3 changes: 2 additions & 1 deletion examples/validLawfulDevelopmentCertificateExisting.json
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@
"hectares": 0.299367,
"squareMetres": 2993.67
}
}
},
"date": {}
}
},
"result": [
Expand Down
8 changes: 8 additions & 0 deletions examples/validLawfulDevelopmentCertificateProposed.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,14 @@
"hectares": 0.141826,
"squareMetres": 1418.26
}
},
"date": {},
"details": {
"extend": {
"area": {
"squareMetres": 24
}
}
}
}
},
Expand Down
149 changes: 148 additions & 1 deletion examples/validPlanningPermission.json
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,16 @@
"squareMetres": 125.92
}
},
"date": {
"start": "2024-05-01",
"completion": "2024-05-02"
},
"details": {
"extend": {
"area": {
"squareMetres": 45
}
},
"vehicleParking": {
"type": [
{
Expand All @@ -288,7 +297,145 @@
"value": "bicycles.offStreet",
"description": "Off-street parking for bicycles"
}
]
],
"cars": {
"count": {
"existing": 1,
"proposed": 1
},
"offStreet": {
"count": {
"existing": 0,
"proposed": 0
},
"club": {
"count": {
"existing": 0,
"proposed": 0
}
},
"disabled": {
"count": {
"existing": 0,
"proposed": 0
}
},
"other": {
"count": {
"existing": 0,
"proposed": 0
}
},
"residents": {
"count": {
"existing": 1,
"proposed": 1
}
}
},
"onStreet": {
"count": {
"existing": 0,
"proposed": 0
},
"club": {
"count": {
"existing": 0,
"proposed": 0
}
},
"disabled": {
"count": {
"existing": 0,
"proposed": 0
}
},
"other": {
"count": {
"existing": 0,
"proposed": 0
}
},
"residents": {
"count": {
"existing": 0,
"proposed": 0
}
}
}
},
"vans": {
"count": {
"existing": 0,
"proposed": 0
},
"offStreet": {
"count": {
"existing": 0,
"proposed": 0
}
},
"onStreet": {
"count": {
"existing": 0,
"proposed": 0
}
}
},
"motorcycles": {
"count": {
"existing": 0,
"proposed": 0
},
"offStreet": {
"count": {
"existing": 0,
"proposed": 0
}
},
"onStreet": {
"count": {
"existing": 0,
"proposed": 0
}
}
},
"bicycles": {
"count": {
"existing": 2,
"proposed": 2
},
"offStreet": {
"count": {
"existing": 2,
"proposed": 2
}
},
"onStreet": {
"count": {
"existing": 0,
"proposed": 0
}
}
},
"buses": {
"count": {
"existing": 0,
"proposed": 0
},
"offStreet": {
"count": {
"existing": 0,
"proposed": 0
}
},
"onStreet": {
"count": {
"existing": 0,
"proposed": 0
}
}
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2179,7 +2179,7 @@
],
"type": "object"
},
"motorcyles": {
"motorcycles": {
"additionalProperties": false,
"properties": {
"count": {
Expand Down
2 changes: 1 addition & 1 deletion types/schema/data/Proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export interface LondonDetails extends BaseDetails {
onStreet?: VehicleParkingCount;
offStreet?: VehicleParkingCount;
};
motorcyles?: {
motorcycles?: {
count: {
existing: number;
proposed: number;
Expand Down

0 comments on commit e7fc3a7

Please sign in to comment.