Explorar o código

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

Signed-off-by: -LAN- <laipz8200@outlook.com>
-LAN- hai 9 meses
pai
achega
72bc9d5f2b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      api/core/app/segments/variables.py

+ 1 - 0
api/core/app/segments/variables.py

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