alexjbuck / alexjbuck/split-server

Root route doesn't actually return JSON formatted object

未關閉
#1 0 則留言 0 個 reaction 已指派 1 人 已被 @alexjbuck 認領 在 GitHub 檢視
主要語言
Rust
星號
0
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

The root route returns the `Debug` formatted rust struct for a `Dataset` not a JSON formatted object of `Dataset.list`

Actual output:
```
Dataset { list: [Record { name: "Mission 1", split: Test }, Record { name: "Mission 2", split: Train }, Record { name: "Mission 3", split: Validation }, Record { name: "Mission 4", split: Train }, Record { name: "Weirds-nasdlf!!@$#123__321", split: Train }, Record { name: "testing new thing", split: Unknown }] }
```

Desired output (new lines included for clarity, not expected in output):
```
{
[
{ name: "Mission 1", split: Test },
{ name: "Mission 2", split: Train },
{ name: "Mission 3", split: Validation },
{ name: "Mission 4", split: Train },
{ name: "Weirds-nasdlf!!@$#123__321", split: Train },
{ name: "testing new thing", split: Unknown }
]
}
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。