patch allow 'type' as field name