Skip to content

Instantly share code, notes, and snippets.

@pjazdzewski1990
Created July 13, 2016 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjazdzewski1990/cc2c98b48af781b75c148e0e03acde9b to your computer and use it in GitHub Desktop.
Save pjazdzewski1990/cc2c98b48af781b75c148e0e03acde9b to your computer and use it in GitHub Desktop.
lazy val BigDecimalSerializer: PathParamSerializer[BigDecimal] =
com.lightbend.lagom.javadsl.api.deser.PathParamSerializers.required(
"BigDecimal",
(pathValue: String) => BigDecimal(pathValue),
(v: BigDecimal) => v.toString
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment