Is your feature request related to a problem? Please describe.
Add JsonTypeInfo.Id.SIMPLE_NAME that would use Class::getSimpleName for type ids.
My use case is sealed hierarchies where there is single sealed super interface, it would result in cleaner type ids. My work around:
// AnnotationIntrospector
@Override
public String findTypeName(AnnotatedClass ac) {
if (Arrays.stream(ac.getAnnotated().getInterfaces()).filter(Class::isSealed).count() == 1) {
return ac.getAnnotated().getSimpleName();
}
return super.findTypeName(ac);
}
Describe the solution you'd like
JsonTypeInfo.Id.SIMPLE_NAME
Usage example
No response
Additional context
No response