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

feat: write a prototypeApplication schema with definitions based on primary application type #236

Merged
merged 13 commits into from
Sep 19, 2024
Merged
Prev Previous commit
Next Next commit
correct schema URLs for all examples
  • Loading branch information
jessicamcinchak committed Sep 18, 2024
commit c766ace9c05951069dad8861e0c85dc0f645534c
2 changes: 1 addition & 1 deletion examples/application/data/landDrainageConsent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,6 @@ export const landDrainageConsent: Application = {
payable: [],
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/application.json`,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we re-organised the file structure, we missed updating existing example payload URLs - so those are handled here! Sorry it makes for another 13 x 2 files changed though 🙈

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch thanks!

},
};
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,6 @@ export const lawfulDevelopmentCertificateExisting: Application = {
},
},
submittedAt: '2023-10-02t00:00:00z',
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/application.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,6 @@ export const lawfulDevelopmentCertificateProposed: Application = {
},
},
submittedAt: '2023-10-02T00:00:00+01:00',
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/application.json`,
},
};
2 changes: 1 addition & 1 deletion examples/application/data/listedBuildingConsent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,6 @@ export const listedBuildingConsent: Application = {
notApplicable: true,
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/application.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,6 @@ export const planningPermissionFullHouseholder: Application = {
},
},
submittedAt: '2023-10-02T00:00:00.00Z',
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/application.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -1336,6 +1336,6 @@ export const planningPermissionFullHouseholderInConservationArea: Application =
},
},
submittedAt: '2023-10-02T00:00:00.00Z',
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/application.json`,
},
};
2 changes: 1 addition & 1 deletion examples/application/data/planningPermission/major.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2191,6 +2191,6 @@ export const planningPermissionMajor: Application = {
payable: [],
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/application.json`,
},
};
2 changes: 1 addition & 1 deletion examples/application/data/planningPermission/minor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1704,6 +1704,6 @@ export const planningPermissionMinor: Application = {
},
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/application.json`,
},
};
2 changes: 1 addition & 1 deletion examples/application/data/priorApproval/buildHomes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1838,6 +1838,6 @@ export const priorApprovalBuildHomes: Application = {
],
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/application.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,6 @@ export const priorApprovalConvertCommercialToHome: Application = {
],
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/application.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -1797,6 +1797,6 @@ export const priorApprovalExtendUniversity: Application = {
],
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/application.json`,
},
};
2 changes: 1 addition & 1 deletion examples/application/data/priorApproval/largerExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,6 @@ export const priorApprovalLargerExtension: Application = {
],
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/application.json`,
},
};
2 changes: 1 addition & 1 deletion examples/application/data/priorApproval/solarPanels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1344,6 +1344,6 @@ export const priorApprovalSolarPanels: Application = {
],
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/application.json`,
},
};
2 changes: 1 addition & 1 deletion examples/application/landDrainageConsent.json
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,6 @@
"payable": []
}
},
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/application.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1921,6 +1921,6 @@
}
},
"submittedAt": "2023-10-02t00:00:00z",
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/application.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,6 @@
}
},
"submittedAt": "2023-10-02T00:00:00+01:00",
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/application.json"
}
}
2 changes: 1 addition & 1 deletion examples/application/listedBuildingConsent.json
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,6 @@
"notApplicable": true
}
},
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/application.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1723,6 +1723,6 @@
}
},
"submittedAt": "2023-10-02T00:00:00.00Z",
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/application.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1885,6 +1885,6 @@
}
},
"submittedAt": "2023-10-02T00:00:00.00Z",
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/application.json"
}
}
2 changes: 1 addition & 1 deletion examples/application/planningPermission/major.json
Original file line number Diff line number Diff line change
Expand Up @@ -2433,6 +2433,6 @@
"payable": []
}
},
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/application.json"
}
}
2 changes: 1 addition & 1 deletion examples/application/planningPermission/minor.json
Original file line number Diff line number Diff line change
Expand Up @@ -1693,6 +1693,6 @@
}
}
},
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/application.json"
}
}
2 changes: 1 addition & 1 deletion examples/application/priorApproval/buildHomes.json
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,6 @@
]
}
},
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/application.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1681,6 +1681,6 @@
]
}
},
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/application.json"
}
}
2 changes: 1 addition & 1 deletion examples/application/priorApproval/extendUniversity.json
Original file line number Diff line number Diff line change
Expand Up @@ -1814,6 +1814,6 @@
]
}
},
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/application.json"
}
}
2 changes: 1 addition & 1 deletion examples/application/priorApproval/largerExtension.json
Original file line number Diff line number Diff line change
Expand Up @@ -1567,6 +1567,6 @@
]
}
},
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/application.json"
}
}
2 changes: 1 addition & 1 deletion examples/application/priorApproval/solarPanels.json
Original file line number Diff line number Diff line change
Expand Up @@ -1523,6 +1523,6 @@
]
}
},
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/application.json"
}
}
2 changes: 1 addition & 1 deletion examples/prototypeApplication/data/landDrainageConsent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,6 @@ export const landDrainageConsentPrototype: PrototypeApplication = {
payable: [],
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/prototypeApplication.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,6 @@ export const lawfulDevelopmentCertificateExistingPrototype: PrototypeApplication
},
},
submittedAt: '2023-10-02t00:00:00z',
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/prototypeApplication.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,6 @@ export const lawfulDevelopmentCertificateProposedPrototype: PrototypeApplication
},
},
submittedAt: '2023-10-02T00:00:00+01:00',
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/prototypeApplication.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,6 @@ export const listedBuildingConsentPrototype: PrototypeApplication = {
notApplicable: true,
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/prototypeApplication.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,6 @@ export const planningPermissionFullHouseholderPrototype: PrototypeApplication =
},
},
submittedAt: '2023-10-02T00:00:00.00Z',
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/prototypeApplication.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,6 @@ export const planningPermissionFullHouseholderInConservationAreaPrototype: Proto
},
},
submittedAt: '2023-10-02T00:00:00.00Z',
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/prototypeApplication.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -2104,6 +2104,6 @@ export const planningPermissionMajorPrototype: PrototypeApplication = {
payable: [],
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/prototypeApplication.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,6 @@ export const planningPermissionMinorPrototype: PrototypeApplication = {
payable: [],
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/prototypeApplication.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -1714,6 +1714,6 @@ export const priorApprovalBuildHomesPrototype: PrototypeApplication = {
],
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/prototypeApplication.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -1497,6 +1497,6 @@ export const priorApprovalConvertCommercialToHomePrototype: PrototypeApplication
],
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/prototypeApplication.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -1705,6 +1705,6 @@ export const priorApprovalExtendUniversityPrototype: PrototypeApplication = {
],
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/prototypeApplication.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,6 @@ export const priorApprovalLargerExtensionPrototype: PrototypeApplication = {
],
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/prototypeApplication.json`,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,6 @@ export const priorApprovalSolarPanelsPrototype: PrototypeApplication = {
],
},
},
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schema.json`,
schema: `https://theopensystemslab.github.io/digital-planning-data-schemas/${version}/schemas/prototypeApplication.json`,
},
};
2 changes: 1 addition & 1 deletion examples/prototypeApplication/landDrainageConsent.json
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,6 @@
"payable": []
}
},
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/prototypeApplication.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,6 @@
}
},
"submittedAt": "2023-10-02t00:00:00z",
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/prototypeApplication.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,6 @@
}
},
"submittedAt": "2023-10-02T00:00:00+01:00",
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/prototypeApplication.json"
}
}
2 changes: 1 addition & 1 deletion examples/prototypeApplication/listedBuildingConsent.json
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,6 @@
"notApplicable": true
}
},
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/prototypeApplication.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1647,6 +1647,6 @@
}
},
"submittedAt": "2023-10-02T00:00:00.00Z",
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/prototypeApplication.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1774,6 +1774,6 @@
}
},
"submittedAt": "2023-10-02T00:00:00.00Z",
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/prototypeApplication.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2324,6 +2324,6 @@
"payable": []
}
},
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/prototypeApplication.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1597,6 +1597,6 @@
"payable": []
}
},
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schema.json"
"schema": "https://theopensystemslab.github.io/digital-planning-data-schemas/@next/schemas/prototypeApplication.json"
}
}
Loading