mirror of
https://github.com/detleph/server.git
synced 2026-09-06 16:06:18 +02:00
Add schema valiation
+ Using zod for validation + Add SchemaError
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import ForwardableError from "./ForwardableError";
|
||||
|
||||
export default class SchemaError extends ForwardableError {
|
||||
protected __oid = "SCHEMA_ERROR";
|
||||
|
||||
constructor(message: string) {
|
||||
super(400, message);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user