non validated rel has null value in validated field

This commit is contained in:
Alessia Bardi 2021-02-16 11:01:42 +01:00
parent 83d815d0bc
commit 32e81c2d89
2 changed files with 3 additions and 1 deletions

View File

@ -1094,6 +1094,8 @@ public class XmlRecordFactory implements Serializable {
String.format("missing scheme for: <%s - %s>", type.toString(), targetType));
}
final HashSet<String> fields = Sets.newHashSet(mapFields(link, contexts));
if (rel.getValidated() == null)
rel.setValidated(false);
return templateFactory
.getRel(
targetType, rel.getTarget(), fields, rel.getRelClass(), scheme, rel.getDataInfo(), rel.getValidated(),

View File

@ -25,7 +25,7 @@
"relClass": "isProducedBy",
"source": "50|CSC_________::0000ec4dd9df012feaafa77e71a0fb4c",
"target": "40|corda__h2020::79a0e16c122c9a18eb60e4a5e64b620d",
"validated": false,
"validated": null,
"validationDate": null,
"properties": []
}