fix(api): 🐛 Make validation on push subscription more lax

This commit is contained in:
Jesse Wierzbinski 2025-01-02 03:53:38 +01:00
parent 59cf4e384a
commit ea0afdaf22
No known key found for this signature in database
4 changed files with 15 additions and 22 deletions

View file

@ -16,7 +16,7 @@ export const WebPushSubscriptionInput = z
example:
"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEoKCJeHCy69ywHcb3dAR/T8Sud5ljSFHJkuiR6it1ycqAjGTe5F1oZ0ef5QiMX/zdQ+d4jSKiO7RztIz+o/eGuQ==",
}),
auth: z.string().base64().length(24).openapi({
auth: z.string().base64().openapi({
description:
"Auth secret. Base64 encoded string of 16 bytes of random data.",
example: "u67u09PXZW4ncK9l9mAXkA==",