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

Support parameterized constructors for record deserialization #38

Closed
dstelljes opened this issue Oct 22, 2019 · 0 comments
Closed

Support parameterized constructors for record deserialization #38

dstelljes opened this issue Oct 22, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dstelljes
Copy link
Member

Constructors could be a fallback for public setters. Proposed flow:

  1. The deserializer builder looks for a matching publicly-writable field or property for each record field.

  2. If exactly one match is not found for any record field, the deserializer builder looks for exactly one public constructor with exactly one matching parameter for each field (and no other non-optional parameters).

cc @evanbb

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

No branches or pull requests

2 participants