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 vars whose type is nested e.g. var someVar: Nested.Name #4

Open
entonio opened this issue May 19, 2024 · 0 comments
Open

Support vars whose type is nested e.g. var someVar: Nested.Name #4

entonio opened this issue May 19, 2024 · 0 comments

Comments

@entonio
Copy link

entonio commented May 19, 2024

Currently, if there are members whose type is a nested type, they will be ignored by the decoder code generator (not by the CodingKeys nor by the encoder), e.g. :

var carrotId: Fruit.Id

will have a corrresponding CodingKey, will be present in the encoder body, but skipped by the decoder.

I think it requires support in SimpleCodableMacro.swift:59-93, but I'm not sure what needs to be done.

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

1 participant