circe-yaml icon indicating copy to clipboard operation
circe-yaml copied to clipboard

Allow parsing to class with default parameter

Open thedevstone opened this issue 3 years ago • 1 comments

case class case class Program(name: String, id: Int, active: Boolean = false) extends AlarmEntity yaml

zone:
   name: String
   id: Int

thedevstone avatar Sep 10 '21 08:09 thedevstone

This does not have to do with circe-yaml, but with the circe Decoders. This functionality is already available, for reference see: https://circe.github.io/circe/codecs/custom-codecs.html#custom-key-mappings-via-annotations

TimoMeijer avatar Feb 28 '22 17:02 TimoMeijer