[PR #1151] [CLOSED] fix(langgraph): split .langgraph.metadata() into metadata() and jsonSchemaExtra() #1265

Closed
opened 2026-02-15 20:15:01 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1151
Author: @dqbd
Created: 5/5/2025
Status: Closed

Base: mainHead: dqbd/zod-metadata-json-schema-extra


📝 Commits (1)

  • 093977b fix(langgraph): split .langgraph.metadata() into metadata() and jsonSchemaExtra()

📊 Changes

4 files changed (+26 additions, -20 deletions)

View changed files

📝 libs/langgraph/src/graph/zod/plugin.ts (+12 -2)
📝 libs/langgraph/src/graph/zod/schema.ts (+9 -16)
📝 libs/langgraph/src/graph/zod/state.ts (+1 -0)
📝 libs/langgraph/src/tests/pregel.test.ts (+4 -2)

📄 Description

Mimicks the same behaviour seen in Pydantic Field(metadata={...}) vs Field(json_schema_extra={...})


🔄 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/langchain-ai/langgraphjs/pull/1151 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 5/5/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `dqbd/zod-metadata-json-schema-extra` --- ### 📝 Commits (1) - [`093977b`](https://github.com/langchain-ai/langgraphjs/commit/093977b8975c8f610c22bcf0d9684f92555023ca) fix(langgraph): split .langgraph.metadata() into metadata() and jsonSchemaExtra() ### 📊 Changes **4 files changed** (+26 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/src/graph/zod/plugin.ts` (+12 -2) 📝 `libs/langgraph/src/graph/zod/schema.ts` (+9 -16) 📝 `libs/langgraph/src/graph/zod/state.ts` (+1 -0) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+4 -2) </details> ### 📄 Description Mimicks the same behaviour seen in Pydantic Field(metadata={...}) vs Field(json_schema_extra={...}) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 20:15:01 -05:00
yindo closed this issue 2026-02-15 20:15:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#1265