alexjbuck / alexjbuck/split-server

Root route doesn't actually return JSON formatted object

Đang mở
#1 0 bình luận 0 reaction 1 người được giao Được @alexjbuck nhận Xem trên GitHub
Ngôn ngữ chính
Rust
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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 }
]
}
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.