Skip to content

Commit

Permalink
fix: all LondonProperty fields should be optional besides "region" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak authored May 2, 2024
1 parent eb5b5d3 commit 5be2084
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4331,11 +4331,9 @@
}
},
"required": [
"EPC",
"address",
"localAuthorityDistrict",
"region",
"titleNumber",
"type"
],
"type": "object"
Expand Down
4 changes: 2 additions & 2 deletions types/schema/data/Property.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ export interface UKProperty {
*/
export interface LondonProperty extends UKProperty {
region: Extract<UKRegion, 'London'>;
titleNumber: {
titleNumber?: {
known: 'Yes' | 'No';
number?: string;
};
/**
* @title Energy Performance Certificate
*/
EPC: {
EPC?: {
known:
| 'Yes'
| 'Yes, but only some of the properties have one'
Expand Down

0 comments on commit 5be2084

Please sign in to comment.