We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0e3baf commit 5818880Copy full SHA for 5818880
CHANGELOG.md
@@ -2,6 +2,7 @@
2
3
### Master
4
5
+- update: Cancel the scientific notation of numbers
6
- fix: Invoke error when reading parameter value from file using `-FILE`
7
8
### 3.0.28
openapi/output_filter.go
@@ -69,7 +69,9 @@ func NewTableOutputFilter(ctx *cli.Context) OutputFilter {
69
func (a *TableOutputFilter) FilterOutput(s string) (string, error) {
70
var v interface{}
71
s = fmt.Sprintf("{\"RootFilter\":[%s]}", s)
72
- err := json.Unmarshal([]byte(s), &v)
+ decoder := json.NewDecoder(bytes.NewBufferString(s))
73
+ decoder.UseNumber()
74
+ err := decoder.Decode(&v)
75
if err != nil {
76
return s, fmt.Errorf("unmarshal output failed %s", err)
77
}
0 commit comments