Add schema valiation

+ Using zod for validation
+ Add SchemaError
This commit is contained in:
Stephan
2022-05-01 17:18:55 +02:00
parent 2034faa448
commit 72ee918f00
3 changed files with 76 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
import ForwardableError from "./ForwardableError";
export default class SchemaError extends ForwardableError {
protected __oid = "SCHEMA_ERROR";
constructor(message: string) {
super(400, message);
}
}