(note: issue uncovered due to FasterXML/jackson-databind#3406 change to default of DeserializationFeature.FAIL_ON_TRAILING_TOKENS to true).
So: it looks like conversion of root XML object into virtual null (using xsi:nil at least) produces unwanted JsonToken.END_OBJECT token, caught by validation.
Ideally this would not occur.
(note: issue uncovered due to FasterXML/jackson-databind#3406 change to default of
DeserializationFeature.FAIL_ON_TRAILING_TOKENStotrue).So: it looks like conversion of root XML object into virtual
null(usingxsi:nilat least) produces unwantedJsonToken.END_OBJECTtoken, caught by validation.Ideally this would not occur.