commit | d20b9046178f2edfac348f2d6267a2e119179e9d | [log] [tgz] |
---|---|---|
author | fanchanghu <fan.changhu@zte.com.cn> | Mon Sep 17 14:16:26 2018 +0800 |
committer | fanchanghu <fan.changhu@zte.com.cn> | Mon Sep 17 14:16:26 2018 +0800 |
tree | d0858be0163126b4aa370d7f023a2b17f44e94db | |
parent | 0e701c1418c33fcfda43c8fcf47b7b961b2c7289 [diff] [blame] |
json parser BUGFIX action input/output need to be ordered fixes #608
diff --git a/src/parser_json.c b/src/parser_json.c index bc9b352..f4af881 100644 --- a/src/parser_json.c +++ b/src/parser_json.c
@@ -1448,7 +1448,7 @@ } /* order the elements by hand as it is not required of the JSON input */ - if (lyp_is_rpc_action(result->schema)) { + if ((options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY))) { if (lyd_schema_sort(result, 1)) { goto error; }