Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: knowledge dataset description field validation error #29404 (#29405)

Hengdong Gong91f6d25daebb
diff --git a/api/core/entities/knowledge_entities.py b/api/core/entities/knowledge_entities.py
index b9ca7414dc0..bed3a35400b 100644
--- a/api/core/entities/knowledge_entities.py
+++ b/api/core/entities/knowledge_entities.py
@@ -1,4 +1,4 @@
-from pydantic import BaseModel
+from pydantic import BaseModel, Field
class PreviewDetail(BaseModel):
@@ -20,7 +20,7 @@ class IndexingEstimate(BaseModel):
class PipelineDataset(BaseModel):
id: str
name: str
- description: str
+ description: str | None = Field(default="", description="knowledge dataset description")
chunk_structure: str