Skip to content

Handle case class defaults better #612

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

Merged
merged 6 commits into from
Jul 15, 2024
Merged

Conversation

ybasket
Copy link
Collaborator

@ybasket ybasket commented Jun 23, 2024

Always parse empty cells to their default values if one is defined, allowing to use defaults with types that can't be parsed from an empty cell, like numbers. Comes at the expense of not being able to parse empty cells as-is any longer if a default exist.

Closes #607

Always parse empty cells to their default values if one is defined, allowing to use defaults with types that can't be parsed from an empty cell, like numbers. Comes at the expense of not being able to parse empty cells as-is any longer if a default exist.

Closes #607
@ybasket ybasket requested a review from a team as a code owner June 23, 2024 18:09
ybasket and others added 2 commits July 10, 2024 16:53
…nal/MapShapedCsvRowDecoder.scala

Co-authored-by: Lucas Satabin <2537737+satabin@users.noreply.github.com>
Copy link
Member

@satabin satabin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, you juste need to run sbt prePR and you're good to go!

@ybasket ybasket enabled auto-merge July 15, 2024 10:01
@ybasket ybasket merged commit 0358494 into main Jul 15, 2024
28 checks passed
@ybasket ybasket deleted the feature/607-csv-case-class-defaults branch July 15, 2024 10:13
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

Successfully merging this pull request may close these issues.

Support for / respect of default arguments in case class decoders?
2 participants