blob: 35a7af8c99ca651f0f0b168e86938fd7cd5aa2d8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
open Listenbrainz_t
let validate_submission s =
match s.listen_type with
| `Single -> List.length s.payload = 1
| _ -> true
let validate_response r =
List.length r.listens = r.count
|