Details
Description
The required flag is not always checked during unmarshalling.
In particular this issue contains a test case that fails when an element with a missing requried attribute is contained with a list, and has at least one attribute present.
The attached patch (against HEAD) fixes the issue for me, but I haven't run the full test suite because there don't appear to be any instructions on how to do so.
Test case that shows the bug