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

Cfg Attributes on Model Fields Not Properly Handled #150

Open
Electron100 opened this issue Oct 22, 2023 · 0 comments
Open

Cfg Attributes on Model Fields Not Properly Handled #150

Electron100 opened this issue Oct 22, 2023 · 0 comments

Comments

@Electron100
Copy link
Owner

#148 duplicated the Post and PostMetadata model/dataresult types in the blog test, one for if datatime is enabled and one for if it is not. That shouldn't have been necessary -- it should be possible simply to use #cfg attributes on the field. Unfortunately, the model attribute is processed before the cfg attribute and Butane doesn't propagate the cfg properly and ends up creating references to the field that is ultimately omitted. We should check for the cfg attribute and if so propagate it to all references we create to the field.

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