-
Notifications
You must be signed in to change notification settings - Fork 220
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
Required trait removal doesn't emit any events - should it? #1744
Comments
The title of the issue seems off here right? The required trait isn't removed, it's merged into the resulting member and kept. There's a warning logged for the
I'm not sure that we can detect trait deltas between two merged members. When model files are loaded, shapes are essentially broken into pieces and later reassembled with the merging process. In a way, all traits applied to shapes/members basically become Maybe we could turn that logged warning into a validation event, to bring more attention to this. |
Right, what I mean is that I removed it between model versions and it still ends up in the final model once the old and new version are merged :) |
Hi!
I bumped into this: if you merge two models with a member that's
@required
in one but not in the other, the merged model will always make the field required.While this behavior is consistent with the usual handling of traits in model merging, shouldn't this emit some sort of event, whether it be a NOTE or WARN? I imagine some code might misbehave if you merge things like these:
The text was updated successfully, but these errors were encountered: