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

Don't detect public service properties in hierarchy as duplicates #24462

Merged
merged 3 commits into from
Mar 25, 2021

Conversation

ajcvickers
Copy link
Member

Fixes #23968

Service properties are most commonly private. We were missing test coverage for public service properties in a type hierarchy, which was hiding this bug where we detect the property reflected from the base type as a duplicate. Fix is to match duplicates by name.

@ajcvickers ajcvickers requested a review from a team March 20, 2021 23:08
@ajcvickers
Copy link
Member Author

Updated this to support multiple service properties of the same type, rather than block them, since supporting them is less code/complexity than blocking them.

Fixes #23968

Service properties are most commonly private. We were missing test coverage for public service properties in a type hierarchy, which was hiding this bug where we detect the property reflected from the base type as a duplicate. Fix is to match duplicates by name.
@ajcvickers ajcvickers merged commit f3fc0ce into main Mar 25, 2021
@ajcvickers ajcvickers deleted the WhatsThatDownThere0319 branch March 25, 2021 19:53
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

Successfully merging this pull request may close these issues.

Public service property on a base type fails model validation
2 participants