You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A callback would allow users to be notified a polymorphic type was about to be resolved.
This can be useful to allow the calling code to perform some operation, e.g. dynamically register the required subtypes if they haven't been registered already.
The text was updated successfully, but these errors were encountered:
big-andy-coates
added a commit
to big-andy-coates/mbknor-jackson-jsonSchema
that referenced
this issue
Jan 23, 2021
…olving sub types.
Fixes: mbknor#137
Rather than providing a callback, just move the actual code for resolving subtypes into the resolver itself. Then users are free to implement what they like here.
Obviously, it's their responsibility that this aligns with what ever weird and wonderful serialization logic they have.
A callback would allow users to be notified a polymorphic type was about to be resolved.
This can be useful to allow the calling code to perform some operation, e.g. dynamically register the required subtypes if they haven't been registered already.
The text was updated successfully, but these errors were encountered: