Browse Source

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

Bowen Liang 3 tháng trước cách đây
mục cha
commit
6fad719e42
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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