mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 03:46:52 +08:00
fix(core): Reorder field_validator and classmethod to fit Pydantic V2. (#5257)
This commit is contained in:
@@ -77,8 +77,8 @@ class QueueIterationNextEvent(AppQueueEvent):
|
||||
node_run_index: int
|
||||
output: Optional[Any] = None # output for the current iteration
|
||||
|
||||
@classmethod
|
||||
@field_validator('output', mode='before')
|
||||
@classmethod
|
||||
def set_output(cls, v):
|
||||
"""
|
||||
Set output
|
||||
|
||||
Reference in New Issue
Block a user