ENH: add converter that checks input against enum See merge request caosdb/caosdb-advanced-user-tools!86