fix(server): return diagnosable body for schema rejections (#26631)
This commit is contained in:
parent
cc2915be16
commit
049502fac6
10 changed files with 606 additions and 324 deletions
|
|
@ -752,11 +752,11 @@ export type Project = {
|
|||
}
|
||||
|
||||
export type BadRequestError = {
|
||||
data: unknown
|
||||
errors: Array<{
|
||||
[key: string]: unknown
|
||||
}>
|
||||
success: false
|
||||
name: "BadRequest"
|
||||
data: {
|
||||
message: string
|
||||
kind?: "Params" | "Headers" | "Query" | "Body" | "Payload"
|
||||
}
|
||||
}
|
||||
|
||||
export type NotFoundError = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue