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 摘要。