Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: adjust planning.designations.entities "source" to include text and url #121

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions examples/data/ldcE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ export const validLDCE: Schema = {
name: 'Whole District excluding the Town of Chesham - Poultry production.',
description:
'Bucks County Council Town and Country Planning Act 1947 Town and Country Planning General Development Order 1950. Re Whole District excluding the Town of Chesham. In relation to poultry production.',
source: 'https://www.planning.data.gov.uk/entity/7010002192',
source: {
text: 'Planning Data',
url: 'https://www.planning.data.gov.uk/entity/7010002192',
},
},
],
},
Expand Down Expand Up @@ -238,7 +241,10 @@ export const validLDCE: Schema = {
entities: [
{
name: 'Chilterns',
source: 'https://www.planning.data.gov.uk/entity/1000005',
source: {
text: 'Planning Data',
url: 'https://www.planning.data.gov.uk/entity/1000005',
},
},
],
},
Expand Down
25 changes: 20 additions & 5 deletions examples/data/priorApproval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,31 +113,46 @@ export const validPriorApproval: Schema = {
name: 'Central Activities Zone',
description:
'Change of use from offices to dwelling houses is restricted',
source: 'https://www.planning.data.gov.uk/entity/7010000942',
source: {
text: 'Planning Data',
url: 'https://www.planning.data.gov.uk/entity/7010000942',
},
},
{
name: 'Central Activities Zone',
description:
'Demolition of commercial buildings and construction of new dwellinghouses is restricted',
source: 'https://www.planning.data.gov.uk/entity/7010000944',
source: {
text: 'Planning Data',
url: 'https://www.planning.data.gov.uk/entity/7010000944',
},
},
{
name: 'Bankside and Borough District Town Centre',
description:
'Demolition of commercial buildings and construction of new dwellinghouses is restricted',
source: 'https://www.planning.data.gov.uk/entity/7010001042',
source: {
text: 'Planning Data',
url: 'https://www.planning.data.gov.uk/entity/7010001042',
},
},
{
name: 'Central Activities Zone',
description:
'Change of use from Class E to residential is restricted',
source: 'https://www.planning.data.gov.uk/entity/7010001055',
source: {
text: 'Planning Data',
url: 'https://www.planning.data.gov.uk/entity/7010001055',
},
},
{
name: 'Bankside and Borough District Town Centre',
description:
'Change of use from Class E to residential is restricted',
source: 'https://www.planning.data.gov.uk/entity/7010001153',
source: {
text: 'Planning Data',
url: 'https://www.planning.data.gov.uk/entity/7010001153',
},
},
],
},
Expand Down
Loading
Loading