Closed big-andy-coates closed 2 years ago
fixes: https://github.com/mbknor/mbknor-jackson-jsonSchema/issues/137
Alternative fix: (which I think I prefer) #139
Adds a callback to SubclassesResolver that is invoked when the generator is about to search for subtypes of a type annotated with @JsonTypeInfo, passing the type being resolved:
SubclassesResolver
@JsonTypeInfo
def resolving(_type: JavaType)def resolving(_type: JavaType) = {}
This allows users to, optionally, execute custom code before ClassGraph attempts to determine the subtypes.
Thoughts on this change @mbknor. Feel free to close the PR is you're not going to merge / adopt...
fixes: https://github.com/mbknor/mbknor-jackson-jsonSchema/issues/137
Alternative fix: (which I think I prefer) #139
Adds a callback to
SubclassesResolver
that is invoked when the generator is about to search for subtypes of a type annotated with@JsonTypeInfo
, passing the type being resolved:This allows users to, optionally, execute custom code before ClassGraph attempts to determine the subtypes.