schema tree BUGFIX input/output nodes should not be skipped
diff --git a/src/printer_yin.c b/src/printer_yin.c
index 6107c42..3db8433 100644
--- a/src/printer_yin.c
+++ b/src/printer_yin.c
@@ -567,7 +567,7 @@
}
ypr_close_parent(ctx, flag);
- ypr_open(ctx, (inout->nodetype == LYS_INPUT ? "input" : "output"), NULL, NULL, *flag);
+ ypr_open(ctx, inout->name, NULL, NULL, *flag);
LEVEL++;
yprp_extension_instances(ctx, LYEXT_SUBSTMT_SELF, 0, inout->exts, NULL, 0);
@@ -586,7 +586,7 @@
}
LEVEL--;
- ypr_close(ctx, (inout->nodetype == LYS_INPUT ? "input" : "output"), 1);
+ ypr_close(ctx, inout->name, 1);
}
static void