-
Notifications
You must be signed in to change notification settings - Fork 37
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
[v3] Skip flattening if properties would clash - PR #2 #3839
Conversation
Does the PR have any schema changes?Looking good! No breaking changes found. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3839 +/- ##
==========================================
- Coverage 57.00% 56.96% -0.04%
==========================================
Files 78 78
Lines 12035 12062 +27
==========================================
+ Hits 6860 6871 +11
- Misses 4675 4691 +16
Partials 500 500 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:chefkiss: Let's make sure to not squash!
@danielrbradley I forgot in the PR description: I rebuilt everything pretending to be on v3 (editing the boolean condition). Branch tkappler/v3-skip-flattening-2-v3gen contains the result, just for inspection, not to be merged. |
Cool that looks spot on. (Direct link to commit: 2f823f5) |
This PR has been shipped in release v2.82.0. |
Skip the flattening of nested properties indicated by x-ms-client-flatten if it would lead to overwriting a property, creating incorrect schema and SDKs. This case happens when inner and outer property have the same name. For a report on all occurrences see #3013.
This change is breaking and could therefore only be applied to v3 of the provider.
The PR is written to be reviewed commit by commit. It supersedes the previous #3801. I recommend hiding whitespace when reviewing since the level of indentation of otherwise unaffected code changed.
Resolves #3195