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
and this test may or may not fail, depending on the ordering of the sub types. The issue is that the order is defined by Jackson's StdSubtypeResolver.collectAndResolveSubtypesByClass(), which is storing the found NamedType's in a HashMap ... which leads to inconsistencies...
The work around would be to install a 'fixed' subclass resolver that orders the returned set of named types.
The longer term fix is to have mbknor-jackson-jsonschema sort the returned collection by type name.
The text was updated successfully, but these errors were encountered:
Add a test such as the following to
SchemaGeneratorTest.java
:and this test may or may not fail, depending on the ordering of the sub types. The issue is that the order is defined by Jackson's
StdSubtypeResolver.collectAndResolveSubtypesByClass()
, which is storing the foundNamedType
's in aHashMap
... which leads to inconsistencies...The work around would be to install a 'fixed' subclass resolver that orders the returned set of named types.
The longer term fix is to have
mbknor-jackson-jsonschema
sort the returned collection by type name.The text was updated successfully, but these errors were encountered: