-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
Add "require type id for subtypes" property for JsonTypeInfo.Value
in 3.0
#226
Comments
@cowtowncoder sure👍🏻 I do have time for it. If there is additional related (class/file/link) anything I can start looking into, would you let me know? |
@JooHyukKim Perfect! Just look at |
Fixed via #228. I wonder if it'd be good to backport |
I lean towards If the need arises in the future, we can always consider backporting EDIT: Thinking back, maybe there is a big benefit of such backporting that I am missing here? |
Ideally we'd have Value classes for anything but simplest annotations, as it makes it easier to add things like overrides -- one cannot create instances of Does this make sense? |
Thank you for your explanation, @cowtowncoder 🙏🏼. Big +1 for testability 🥹. Yes, it does make sense now. Looking at 2.16 version of At this point, what I assume we can start to do is...
|
Yes, so |
Now tracked in FasterXML/jackson-databind#3943 |
(follow-up to #223)
With #223, a new property was added in
@JsonTypeInfo
, via 2.16 branch. That works fine.But 3.0 (
master
) has added Value type forJsonTypeInfo
(something that we might even want to backport in 2.x since 3.0 is still not out); it will need to handle this new property as well.I can do that later on if necessary, or if @JooHyukKim you have time maybe you could do it?
(addition of the new property: backporting in 2.16 is totally optional)
The text was updated successfully, but these errors were encountered: