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.

bump openapi

Steven Tey9b9e8aa0165c
diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.ts
index f8033d3df6..c7dea11efa 100644
--- a/apps/web/lib/zod/schemas/sales.ts
+++ b/apps/web/lib/zod/schemas/sales.ts
@@ -26,7 +26,7 @@ export const trackSaleRequestSchema = z.object({
.optional()
.default("Purchase")
.describe("The name of the sale event.")
- .openapi({ examples: ["Purchase", "Upgrade", "Payment"] }),
+ .openapi({ example: "Invoice paid" }),
invoiceId: z
.string()
.nullish()
diff --git a/apps/web/package.json b/apps/web/package.json
index 270a9e40a1..853457d892 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -124,7 +124,7 @@
"vaul": "^1.1.2",
"zod": "^3.22.4",
"zod-error": "^1.5.0",
- "zod-openapi": "^2.19.0"
+ "zod-openapi": "^4.2.4"
},
"devDependencies": {
"@types/he": "^1.2.3",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8b7fc77cbd..a4ae930b64 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -361,8 +361,8 @@ importers:
specifier: ^1.5.0
version: 1.5.0
zod-openapi:
- specifier: ^2.19.0
- version: 2.19.0([email protected])
+ specifier: ^4.2.4
+ version: 4.2.4([email protected])
devDependencies:
'@types/he':
specifier: ^1.2.3
@@ -11921,9 +11921,9 @@ packages:
resolution: {integrity: sha512-zzopKZ/skI9iXpqCEPj+iLCKl9b88E43ehcU+sbRoHuwGd9F1IDVGQ70TyO6kmfiRL1g4IXkjsXK+g1gLYl4WQ==}
- resolution: {integrity: sha512-OUAAyBDPPwZ9u61i4k/LieXUzP2re8kFjqdNh2AvHjsyi/aRNz9leDAtMGcSoSzUT5xUeQoACJufBI6FzzZyxA==}
- engines: {node: '>=16.11'}
+ resolution: {integrity: sha512-tsrQpbpqFCXqVXUzi3TPwFhuMtLN3oNZobOtYnK6/5VkXsNdnIgyNr4r8no4wmYluaxzN3F7iS+8xCW8BmMQ8g==}
+ engines: {node: '>=18'}
peerDependencies:
zod: ^3.21.4
@@ -25761,7 +25761,7 @@ snapshots:
dependencies:
zod: 3.22.4
dependencies:
zod: 3.22.4