[#3121] Skip code re-generation when schema is known to be the same