Do not check format if the type = null.