vkostyukov on validated-again
vkostyukov on master
Get rid of RequestItem; rework … (compare)
vkostyukov on validated-again
more fixes (compare)
joroKr21 on master
Update refined, refined-cats, .… Merge pull request #1485 from s… (compare)
joroKr21 on master
Update sbt-wartremover, wartrem… Merge pull request #1484 from s… (compare)
joroKr21 on master
kind-projector 0.13.2 (was 0.10… Merge pull request #1483 from S… (compare)
tpetillot on master
Update scalatest to 3.2.12 (compare)
paramOption[NonEmptyString]("marketingsource")
it returns a BadRequest
for a empty string but no error message
import io.finch.refined._
import io.circe.refined._ // needed
import eu.timepit.refined.auto._
import eu.timepit.refined.types.string.NonEmptyString
Does anyone know if Finch supports web sockets? Or some Finagle based code?
I see https://github.com/finagle/finagle-websocket but that project is inactive. Thanks
Future
and F[_]
(or finchx)
I can't get either to work. i.e. my options are coming back as null still
e.g.
import io.finch.circe.dropNullValues._
val videoCanned: Endpoint[IO, Video] = get(videoadmin :: "canned") {
Ok(Video(9999,"canned","url","link", description = "canned"))
}
But the optional null fields still come back as :null
What am I doing wrong?
Thanks
Ah, got it working, just had to be careful with imports
https://gist.github.com/fancellu/b145ed3a0a27c6a1c414c0d485a44d37
private def foo: Endpoint[IO, String] = get(path("debug")) {
None.getOrElse(return BadRequest(???))
Ok("test")
}
return
will return the outer function (thus BadRequest(???)
is expected to be of type Endpoint[IO, String]
)
get(...)