Make custom field "type" attribute enum in schema