reqable-app icon indicating copy to clipboard operation
reqable-app copied to clipboard

[bug] 生成代码JSON格式化后和原始数据不一致

Open DreamlingBig opened this issue 9 months ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

生成python代码时 如果接口的content-type是application/json body的payload用json.dumps序列化为json字符串时,会包含一些格式化的空格。 原数据{"a","1","b":"2"} 转换的{"a","1", "b":"2"}

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Information

  • Platform: [e.g. windows, macos, linux]
  • OS: [e.g. 12.1]
  • Arch: [e.g. arm, x86-64]
  • App Version: [e.g. 1.0.0]

DreamlingBig avatar Mar 23 '25 05:03 DreamlingBig

还有原始里面的headers头顺序和生成代码的顺序不一样 强迫症表示很难受。

DreamlingBig avatar Mar 23 '25 05:03 DreamlingBig