revert required check in enum validator
fixes extends with $ref should not remove other attributes when resolving $ref