Better handle required field of required or non-required object
Add example for v3 and v4 style required property