Revert "Merge pull request #1008 from spacebarchat/dev/samuel"

This reverts commit 69ea71aa9e, reversing
changes made to 8b2faf0b18.
This commit is contained in:
Madeline
2023-03-31 15:26:15 +11:00
parent c8f65ca4c7
commit 698ad90d3e
51 changed files with 2600 additions and 3583 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ export const ajv = new Ajv({
allowUnionTypes: true,
});
addFormats(ajv as never);
addFormats(ajv);
export function validateSchema<G extends object>(schema: string, data: G): G {
const valid = ajv.validate(schema, normalizeBody(data));