-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Derive access level of generate CodingKeys from @Codable model #49
Comments
While for your use case it sounds appropriate to make
This can be added as an additional option in |
Implementing additional option in Codable would work as well. In defense of automatically inheriting access modifier, in case you make object public, |
I agree it won't be overridable, my concern is once you make this implementation public any change made to |
Maybe better idea would be to add additional parameter to |
This wouldn't be a good idea considering I am adding enum support, and |
Right now
@Codable
macro will generate CodingKeys with internal access level.It would great to generate CodingKeys with the same access level (public) as
MessageReceiver
. This would allow access to CodingKeys in multi package application. As of my particular use case I would like to build OData requests using CodingKeys instead of String from the domain layer of application.Really appreciate effort in open sourcing the project, unfortunately internal macros plugin implementation is quite complicated to be able to make a quick PR with solution.
The text was updated successfully, but these errors were encountered: