if (v == null) v = f.defaultValue();
if (v != null) {
Object o = old != null ? getField(old, name, f.pos()) : null;
addField(record, name, f.pos(), defaultFieldValue(o, f.schema(), v));
} else if (old != null) {
removeField(record, name, f.pos());
}
}
return record;
case ENUM:
return createEnum(json.getTextValue(), schema);