From 6fad719e4205d757a37acb2d5ddb8a87787b9097 Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Tue, 21 Jan 2025 10:38:44 +0800 Subject: [PATCH] chore(fix): Invalid quotes for using Array[String] in HTTP request node as JSON body (#12761) --- api/core/variables/segments.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/core/variables/segments.py b/api/core/variables/segments.py index 69bd5567a4..a9f5651692 100644 --- a/api/core/variables/segments.py +++ b/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