瀏覽代碼

chore(fix): Invalid quotes for using Array[String] in HTTP request node as JSON body (#12761)

Bowen Liang 3 月之前
父節點
當前提交
6fad719e42
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      api/core/variables/segments.py

+ 4 - 0
api/core/variables/segments.py

@@ -134,6 +134,10 @@ class ArrayStringSegment(ArraySegment):
     value_type: SegmentType = SegmentType.ARRAY_STRING
     value: Sequence[str]
 
+    @property
+    def text(self) -> str:
+        return json.dumps(self.value)
+
 
 class ArrayNumberSegment(ArraySegment):
     value_type: SegmentType = SegmentType.ARRAY_NUMBER