Skip to content

Commit

Permalink
chore(fix): Invalid quotes for using Array[String] in HTTP request no…
Browse files Browse the repository at this point in the history
…de as JSON body (#12761)
  • Loading branch information
bowenliang123 authored Jan 21, 2025
1 parent 9aaee8e commit 6fad719
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/core/variables/segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fad719

Please sign in to comment.