The CSV parameter decoder misbehaves on certain inputs:
Given only empty fields
scala> csvDecoder[String].decode(QueryParameterValue(","))
java.util.NoSuchElementException: None.get
at scala.None$.get(Option.scala:349)
at scala.None$.get(Option.scala:347)
at lasp.hapi.service.QueryDecoders$$anon$1.decode(QueryDecoders.scala:33)
... 36 elided
Given empty fields mixed with values
scala> csvDecoder[String].decode(QueryParameterValue(",a,,,b,,"))
res9: cats.data.ValidatedNel[org.http4s.ParseFailure,cats.data.NonEmptyList[String]] = Valid(NonEmptyList(, a, , , b))
The CSV parameter decoder misbehaves on certain inputs:
Given only empty fields
Given empty fields mixed with values
Both should yield parse failures.