Ver código fonte

Remove the processing of single quote when testing API tools. (#11390)

tags/0.14.0
Wei Mingzhi 10 meses atrás
pai
commit
28231d39a4
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 0 adições e 3 exclusões
  1. 0
    3
      api/core/tools/tool/api_tool.py

+ 0
- 3
api/core/tools/tool/api_tool.py Ver arquivo

@@ -270,9 +270,6 @@ class ApiTool(Tool):
elif property["type"] == "object" or property["type"] == "array":
if isinstance(value, str):
try:
# an array str like '[1,2]' also can convert to list [1,2] through json.loads
# json not support single quote, but we can support it
value = value.replace("'", '"')
return json.loads(value)
except ValueError:
return value

Carregando…
Cancelar
Salvar