Merge pull request #1008 from spacebarchat/dev/samuel

This commit is contained in:
Samuel (Flam3rboy)
2023-03-30 18:13:34 +02:00
committed by GitHub
51 changed files with 3590 additions and 2609 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ export const ajv = new Ajv({
allowUnionTypes: true,
});
addFormats(ajv);
addFormats(ajv as never);
export function validateSchema<G extends object>(schema: string, data: G): G {
const valid = ajv.validate(schema, normalizeBody(data));