Fix issue with rendering OperationOutcomes that don't have 'detail'

This commit is contained in:
Lloyd McKenzie 2024-07-16 21:35:41 -06:00
parent cf2b25eb29
commit 84fc25efa3
1 changed files with 3 additions and 2 deletions

View File

@ -88,8 +88,9 @@ public class OperationOutcomeRenderer extends ResourceRenderer {
d = true;
td.addText(s.primitiveValue());
}
tr.td().addText(getTranslatedCode(i.child("code")));
tr.td().addText(i.child("details").primitiveValue("text"));
tr.td().addText(getTranslatedCode(i.child("code")));
if (i.has("details"))
tr.td().addText(i.child("details").primitiveValue("text"));
smartAddText(tr.td(), i.primitiveValue("diagnostics"));
if (hasSource) {
ResourceWrapper ext = i.extension(ToolingExtensions.EXT_ISSUE_SOURCE);