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
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME)
class BaseType {}
class SubType1 extends BaseType {}
class SubType2 extends BaseType {}
generator.registerSubTypes(List.of(BaseType.class));
When the schema is generated for BaseType it will only include the two subtypes in the oneOf clause. As BaseType is a non-abstract class it should also be included in the list.
This looks to be a bug in mbknor-jackson-jsonschema but needs investigating.
The text was updated successfully, but these errors were encountered:
Given:
When the schema is generated for
BaseType
it will only include the two subtypes in theoneOf
clause. AsBaseType
is a non-abstract class it should also be included in the list.This looks to be a bug in
mbknor-jackson-jsonschema
but needs investigating.The text was updated successfully, but these errors were encountered: