dont validate type and allowed values if we have a custom type