Skip to content

Commit d20b904

Browse files
committed
json parser BUGFIX action input/output need to be ordered
fixes #608
1 parent 0e701c1 commit d20b904

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
@@ -1448,7 +1448,7 @@ lyd_parse_json(struct ly_ctx *ctx, const char *data, int options, const struct l
14481448
}
14491449

14501450
/* order the elements by hand as it is not required of the JSON input */
1451-
if (lyp_is_rpc_action(result->schema)) {
1451+
if ((options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY))) {
14521452
if (lyd_schema_sort(result, 1)) {
14531453
goto error;
14541454
}

0 commit comments

Comments
 (0)