feat(api/core/app/segments/variables.py): Support description in Variable. (#6636)

Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
-LAN-
2024-07-24 19:35:22 +08:00
committed by GitHub
parent 600f13436d
commit 72bc9d5f2b

View File

@@ -20,6 +20,7 @@ class Variable(Segment):
description="Unique identity for variable. It's only used by environment variables now.", description="Unique identity for variable. It's only used by environment variables now.",
) )
name: str name: str
description: str = Field(default='', description='Description of the variable.')
class StringVariable(StringSegment, Variable): class StringVariable(StringSegment, Variable):