Skip to content

Commit 4236af3

Browse files
committed
json parser BUGFIX wrong use input for action
1 parent 0e701c1 commit 4236af3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser_json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ json_parse_data(struct ly_ctx *ctx, const char *data, const struct lys_node *sch
901901
}
902902

903903
/* go through RPC's input/output following the options' data type */
904-
if ((*parent)->schema->nodetype == LYS_RPC) {
904+
if ((*parent)->schema->nodetype == LYS_RPC || (*parent)->schema->nodetype == LYS_ACTION) {
905905
while ((schema = (struct lys_node *)lys_getnext(schema, (*parent)->schema, NULL, LYS_GETNEXT_WITHINOUT))) {
906906
if ((options & LYD_OPT_RPC) && (schema->nodetype == LYS_INPUT)) {
907907
break;

0 commit comments

Comments
 (0)