+ " was required and is now optional."));
}
}
// Recursively compare the nested field types
compareTypes(oldField.schema(), newField.schema(), messages, name + "." + fieldName);
// Check if the default value has been changed
if(newField.defaultValue() == null) {
if(oldField.defaultValue() != null) {
messages.add(new Message(Level.WARN,