Fix for issue identified https://chat.fhir.org/#narrow/stream/196008-ig-publishing-requirements/topic/Embedding.20fragments.20of.20examples.20in.20IG.20text
This commit is contained in:
parent
53ec745184
commit
17ac205210
|
@ -833,10 +833,26 @@ public class JsonParser extends ParserBase {
|
|||
} else if (!done.contains(child.getName())) {
|
||||
done.add(child.getName());
|
||||
List<Element> list = e.getChildrenByName(child.getName());
|
||||
if (child.getProperty().getDefinition().hasExtension(ToolingExtensions.EXT_JSON_PROP_KEY))
|
||||
composeKeyList(path, list);
|
||||
else
|
||||
composeList(path, list);
|
||||
boolean skipList = false;
|
||||
if (json.canElide() && isElideElements()) {
|
||||
boolean foundNonElide = false;
|
||||
for (Element listElement: list) {
|
||||
if (!listElement.isElided()) {
|
||||
foundNonElide = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!foundNonElide) {
|
||||
json.elide();
|
||||
skipList = true;
|
||||
}
|
||||
}
|
||||
if (!skipList) {
|
||||
if (child.getProperty().getDefinition().hasExtension(ToolingExtensions.EXT_JSON_PROP_KEY))
|
||||
composeKeyList(path, list);
|
||||
else
|
||||
composeList(path, list);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue