-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[GH-3519] Deprecate passing the same class with different discriminator values. #9760
[GH-3519] Deprecate passing the same class with different discriminator values. #9760
Conversation
e17eb8f
to
94b96c6
Compare
LGTM, once @greg0ire's suggestion is applied. |
@beberlei This might be an easy thing to bring to an end, and it would add one more mapping consistency check to the codebase. |
There hasn't been any activity on this pull request in the past 90 days, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days. |
94b96c6
to
4e4acd3
Compare
shouldn't this target the 3.4.x branch instead, as this is about a deprecation for a removal in 4.0 ? |
And maybe the schema validator should already report an error for such case |
@stof you're probably right about the target branch, this was created in 2022, and 3.0 did not exist back then. Regarding the schema validator, maybe the initial intent was to contribute the validation in the next major? |
AFAICT, the intent seems to be to turn the deprecation into a MappingException in the next major (which is stricter than something reported only by the SchemaValidator). But maybe the deprecation is indeed enough in that case, instead of turning it into an error reported only to people validating their schema. |
…criminator values.
4e4acd3
to
da51234
Compare
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.
And maybe the schema validator should already report an error for such case
But maybe the deprecation is indeed enough in that case, instead of turning it into an error reported only to people validating their schema.
I assume the schema validator error report is off the table. (sql-pun intended)
Prepares the deprecation for the later removal of this mapping inconsistency.
Related: #3519