-
Notifications
You must be signed in to change notification settings - Fork 2
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
Ability to generate of()
methods for single field types
#36
Comments
@armiol, FYI. |
It seems that the feature is available for a limited number of types only. I've created an issue to track this matter. |
@dmdashenkov, they already replied, and reasonably say that they cannot give this feature for user types, as they don't have control that there would be only one field. Please close the issue you created. And let's discuss how we can do it ourselves. |
@yuri-sergiichuk, please look into this issue once you finish current works on method factories. Presumably, we need a selector, which would accept all types with one field, excluding those which are |
@yuri-sergiichuk, we also probably need some kind of “sealing” such types, saying: “There will be always one field in this type”. Having just one field is not enough. |
Similarly to
StringValue.of()
,UInt32.of()
we need to haveof()
methods generated for single-field types.It would be really convenient for ID types and single value types like
Email
,PhoneNumber
etc.The text was updated successfully, but these errors were encountered: