Skip to content

Commit

Permalink
siteContact required across all app types
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Sep 28, 2023
1 parent 993e66f commit 1fd0757
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 60 deletions.
123 changes: 64 additions & 59 deletions schema/schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$id": "@next",
"$id": "--no-top-ref",
"$ref": "#/definitions/Schema",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"definitions": {
"AddressInput": {
"$id": "#AddressInput",
Expand Down Expand Up @@ -88,6 +88,7 @@
"address",
"agent",
"contact",
"siteContact",
"type"
],
"type": "object"
Expand Down Expand Up @@ -857,7 +858,8 @@
"required": [
"type",
"contact",
"address"
"address",
"siteContact"
],
"type": "object"
},
Expand Down Expand Up @@ -12810,6 +12812,64 @@
],
"description": "An individual result of this application"
},
"Schema": {
"additionalProperties": false,
"description": "Root of PlanX's Digital Planning Schema",
"properties": {
"data": {
"additionalProperties": false,
"properties": {
"applicant": {
"$ref": "#/definitions/Applicant"
},
"application": {
"$ref": "#/definitions/Application"
},
"property": {
"$ref": "#/definitions/Property"
},
"proposal": {
"$ref": "#/definitions/Proposal"
},
"user": {
"$ref": "#/definitions/User"
}
},
"required": [
"applicant",
"property",
"application",
"proposal",
"user"
],
"type": "object"
},
"files": {
"items": {
"$ref": "#/definitions/File"
},
"type": "array"
},
"metadata": {
"$ref": "#/definitions/Metadata"
},
"responses": {
"$ref": "#/definitions/Responses"
},
"result": {
"$ref": "#/definitions/Result"
}
},
"required": [
"data",
"result",
"metadata",
"responses",
"files"
],
"title": "Digital Planning Data Schema",
"type": "object"
},
"SiteContact": {
"$id": "#SiteContact",
"anyOf": [
Expand Down Expand Up @@ -13005,60 +13065,5 @@
],
"type": "object"
}
},
"description": "Root of PlanX's Digital Planning Schema",
"properties": {
"data": {
"additionalProperties": false,
"properties": {
"applicant": {
"$ref": "#/definitions/Applicant"
},
"application": {
"$ref": "#/definitions/Application"
},
"property": {
"$ref": "#/definitions/Property"
},
"proposal": {
"$ref": "#/definitions/Proposal"
},
"user": {
"$ref": "#/definitions/User"
}
},
"required": [
"applicant",
"property",
"application",
"proposal",
"user"
],
"type": "object"
},
"files": {
"items": {
"$ref": "#/definitions/File"
},
"type": "array"
},
"metadata": {
"$ref": "#/definitions/Metadata"
},
"responses": {
"$ref": "#/definitions/Responses"
},
"result": {
"$ref": "#/definitions/Result"
}
},
"required": [
"data",
"result",
"metadata",
"responses",
"files"
],
"title": "Digital Planning Data Schema",
"type": "object"
}
}
2 changes: 1 addition & 1 deletion types/schema/data/Applicant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface BaseApplicant {
interest?: 'owner.sole' | 'owner.co' | 'tenant' | 'occupier';
contact: UserContact;
address: UserAddress;
siteContact?: SiteContact;
siteContact: SiteContact;
}

/**
Expand Down

0 comments on commit 1fd0757

Please sign in to comment.