Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow parsing to class with default parameter #239

Open
thedevstone opened this issue Sep 10, 2021 · 1 comment
Open

Allow parsing to class with default parameter #239

thedevstone opened this issue Sep 10, 2021 · 1 comment

Comments

@thedevstone
Copy link

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

zone:
   name: String
   id: Int
@TimoMeijer
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants