[PR #1579] [MERGED] fix: broken direct template webhook #1729

Closed
opened 2026-02-26 20:30:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1579
Author: @dguyen
Created: 1/11/2025
Status: Merged
Merged: 1/11/2025
Merged by: @dguyen

Base: mainHead: fix/broken-direct-template-webhook


📝 Commits (1)

  • 1de09ea fix: broken direct template webhook

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 packages/lib/server-only/template/create-document-from-direct-template.ts (+1 -0)

📄 Description

Description

Currently the document signed webhook for direct links will fail due to a schema issue sincedocumentMeta is being passed through as optional instead of nullable

ZodError: [
  {
    "code": "invalid_type",
    "expected": "object",
    "received": "undefined",
    "path": [
      "documentMeta"
    ],
    "message": "Required"
  }
]
export const ZWebhookDocumentSchema = z.object({
  ...
  documentMeta: ZWebhookDocumentMetaSchema.nullable(), // <-
  ...
});

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/1579 **Author:** [@dguyen](https://github.com/dguyen) **Created:** 1/11/2025 **Status:** ✅ Merged **Merged:** 1/11/2025 **Merged by:** [@dguyen](https://github.com/dguyen) **Base:** `main` ← **Head:** `fix/broken-direct-template-webhook` --- ### 📝 Commits (1) - [`1de09ea`](https://github.com/documenso/documenso/commit/1de09ea78575666abb9e41e5ec2374b807bc6a82) fix: broken direct template webhook ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/lib/server-only/template/create-document-from-direct-template.ts` (+1 -0) </details> ### 📄 Description ## Description Currently the document signed webhook for direct links will fail due to a schema issue since`documentMeta` is being passed through as `optional` instead of `nullable` ``` ZodError: [ { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "documentMeta" ], "message": "Required" } ] ``` ```ts export const ZWebhookDocumentSchema = z.object({ ... documentMeta: ZWebhookDocumentMetaSchema.nullable(), // <- ... }); ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 20:30:49 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1729
No description provided.