If I have a case class like:
case class FoobarClass(optional_value: Option[String] = None)
And I receive input like:
"{"optional_valeu": "test"}" (note that "optional_value" is misspelled)
It'd be nice to be able to throw an exception immediately instead of silently using the default value for optional_value. Is there a way to do this without defining my own RootJsonFormat?