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

fix: ensure Date format is imported from utils #52

Merged
merged 2 commits into from
Oct 11, 2023
Merged
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
128 changes: 64 additions & 64 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 @@ -4760,8 +4760,7 @@
"description": "Details of the pre-application, if applicable",
"properties": {
"date": {
"format": "date-time",
"type": "string"
"$ref": "#/definitions/Date"
},
"officer": {
"type": "string"
Expand Down Expand Up @@ -15360,12 +15359,10 @@
"additionalProperties": false,
"properties": {
"completion": {
"format": "date-time",
"type": "string"
"$ref": "#/definitions/Date"
},
"start": {
"format": "date-time",
"type": "string"
"$ref": "#/definitions/Date"
}
},
"type": "object"
Expand Down Expand Up @@ -16097,6 +16094,64 @@
],
"description": "The result of a single flagset"
},
"Schema": {
"additionalProperties": false,
"description": "The root schema for an application generated by a digital planning service",
"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": [
"application",
"user",
"applicant",
"property",
"proposal"
],
"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 Application",
"type": "object"
},
"SiteContact": {
"$id": "#SiteContact",
"anyOf": [
Expand Down Expand Up @@ -16797,60 +16852,5 @@
],
"description": "Vehicle parking types"
}
},
"description": "The root schema for an application generated by a digital planning service",
"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": [
"application",
"user",
"applicant",
"property",
"proposal"
],
"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 Application",
"type": "object"
}
}
1 change: 1 addition & 0 deletions types/schema/data/Application.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {ApplicationTypes} from '../../enums/ApplicationTypes';
import {Date} from '../../utils';

/**
* @id #Application
Expand Down
2 changes: 1 addition & 1 deletion types/schema/data/Proposal.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ProjectTypes} from '../../enums/ProjectTypes';
import {VehicleParking} from '../../enums/VehicleParking';
import {Area, GeoJSON} from '../../utils';
import {Area, Date, GeoJSON} from '../../utils';

/**
* @id #Proposal
Expand Down
Loading