WirteJson allow include identifier

This commit is contained in:
Jonas Pöhler
2021-11-04 16:39:05 +01:00
parent 04eda3eae2
commit 9e02a9bb3d
@@ -506,6 +506,9 @@ public final class WriteJson implements SpiJsonWriter {
return true;
if (currentIncludeProps != null) {
// explicitly controlled by pathProperties
if (prop.isId() && currentIncludeProps.contains("${identifier}")) {
return true;
}
return currentIncludeProps.contains(prop.name());
} else {
// include only loaded properties