fix #47 optional enum

Validation of enum type should obey 'required' attribute in schema definition.