Skip to content

Commit

Permalink
nest materials within proposal or property details
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Mar 12, 2024
1 parent 68770e3 commit 16ca11c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 18 deletions.
40 changes: 28 additions & 12 deletions schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,9 @@
],
"type": "object"
},
"materials": {
"$ref": "#/definitions/Materials"
},
"new": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -3414,6 +3417,9 @@
],
"type": "object"
},
"materials": {
"$ref": "#/definitions/Materials"
},
"new": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -4091,17 +4097,24 @@
],
"type": "object"
},
"details": {
"$id": "#PropertyDetails",
"additionalProperties": false,
"description": "Details about the property as it currently exists",
"properties": {
"materials": {
"$ref": "#/definitions/Materials"
}
},
"type": "object"
},
"localAuthorityDistrict": {
"description": "Current and historic UK Local Authority Districts that contain this address sourced from planning.data.gov.uk/dataset/local-authority-district",
"items": {
"type": "string"
},
"type": "array"
},
"materials": {
"$ref": "#/definitions/Materials",
"description": "Details about the existing materials"
},
"planning": {
"additionalProperties": false,
"description": "Planning constraints and policies that intersect with this site and may impact or restrict development",
Expand Down Expand Up @@ -21014,10 +21027,6 @@
"details": {
"$ref": "#/definitions/ProposalDetails"
},
"materials": {
"$ref": "#/definitions/Materials",
"description": "Details about the proposed materials"
},
"projectType": {
"items": {
"$ref": "#/definitions/ProjectType"
Expand Down Expand Up @@ -21868,17 +21877,24 @@
],
"type": "object"
},
"details": {
"$id": "#PropertyDetails",
"additionalProperties": false,
"description": "Details about the property as it currently exists",
"properties": {
"materials": {
"$ref": "#/definitions/Materials"
}
},
"type": "object"
},
"localAuthorityDistrict": {
"description": "Current and historic UK Local Authority Districts that contain this address sourced from planning.data.gov.uk/dataset/local-authority-district",
"items": {
"type": "string"
},
"type": "array"
},
"materials": {
"$ref": "#/definitions/Materials",
"description": "Details about the existing materials"
},
"planning": {
"additionalProperties": false,
"description": "Planning constraints and policies that intersect with this site and may impact or restrict development",
Expand Down
7 changes: 5 additions & 2 deletions types/schema/data/Property.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@ export interface UKProperty {
};
};
/**
* @description Details about the existing materials
* @id #PropertyDetails
* @description Details about the property as it currently exists
*/
materials?: Materials;
details?: {
materials?: Materials;
};
}

/**
Expand Down
5 changes: 1 addition & 4 deletions types/schema/data/Proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ export interface Proposal {
};
date?: ProposalDates;
details?: ProposalDetails;
/**
* @description Details about the proposed materials
*/
materials?: Materials;
}

/**
Expand Down Expand Up @@ -53,6 +49,7 @@ export interface BaseDetails {
dwellings?: number;
};
};
materials?: Materials;
}

/**
Expand Down

0 comments on commit 16ca11c

Please sign in to comment.