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
java.lang.UnsupportedOperationException: Maps with non-stringable keys are not supported yet
at com.fasterxml.jackson.dataformat.avro.schema.MapVisitor.builtAvroSchema(MapVisitor.java:40)
at com.fasterxml.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.getAvroSchema(VisitorFormatWrapperImpl.java:68)
at com.fasterxml.jackson.dataformat.avro.schema.AvroSchemaGenerator.getGeneratedSchema(AvroSchemaGenerator.java:20)
at com.fasterxml.jackson.dataformat.avro.AvroMapper.schemaFor(AvroMapper.java:187)
at com.fasterxml.jackson.dataformat.avro.schema.TestSimpleGeneration.testSchemaForUntypedMap(TestSimpleGeneration.java:166)
In 2.13UnknownSerializer calls visitor.expectObjectFormat(typeHint) whereas in 2.12, UnknownSerializer calls visitor.expectAnyFormat(typeHint).
…f `InvalidDefinitionException`. Reason in 2.13 in that `ToEmptyObjectSerializer` is used to serialize `java.util.Map` which calls `visitor.expectObjectFormat(typeHint)` and thus different exception is thrown at the end and when schema is requested from mapper. (#282)
Co-authored-by: Michal Foksa <Michal.Foksa@external.t-mobile.at>
Unit test
TestSimpleGeneration#testSchemaForUntypedMap
fails in2.13
branch.UnsupportedOperationException
exception is thrown instead of expectedInvalidDefinitionException
exception.Stack trace:
In 2.13
UnknownSerializer
callsvisitor.expectObjectFormat(typeHint)
whereas in 2.12,UnknownSerializer
callsvisitor.expectAnyFormat(typeHint)
.It is since FasterXML/jackson-databind@f19e26e
I think the whole fix is to update exception evaluation.
The text was updated successfully, but these errors were encountered: