Add dynamic route matching and validation improvements
Introduces dynamic route parameter support in route path computation and schema matching. Adds a utility for sending validation errors, updates schema definitions to support header validation, and refactors server middleware to handle header, body, and query validation with improved error handling. Also adds a placeholder user route and updates dependencies to include 'path-to-regexp'.
This commit is contained in:
@@ -6,6 +6,8 @@ class DefaultError extends Error {
|
||||
this.cause = cause || "Internal Server Error"
|
||||
this.message = message || "Internal Server Error"
|
||||
this.isOperational = true
|
||||
|
||||
Error.captureStackTrace(this, this.constructor)
|
||||
}
|
||||
|
||||
serialize() {
|
||||
|
||||
Reference in New Issue
Block a user