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

This commit is contained in:
Bowen Liang 2025-01-21 10:38:44 +08:00 committed by GitHub
parent 9aaee8ee47
commit 6fad719e42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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