Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

refactor: add x-speakeasy-error-message flag to error message schema

Kiran Kb9ad127e5e66
diff --git a/apps/web/lib/api/errors.ts b/apps/web/lib/api/errors.ts
index 9f97b7e4db..2052a3ab97 100644
--- a/apps/web/lib/api/errors.ts
+++ b/apps/web/lib/api/errors.ts
@@ -196,6 +196,7 @@ export const errorSchemaFactory = (
example: code,
},
message: {
+ "x-speakeasy-error-message": true,
type: "string",
description:
"A human readable explanation of what went wrong.",