From 3c55306e225a4a1dd9aa5fcfeaa3d08a7c084323 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Mon, 15 Nov 2021 15:42:33 -0800 Subject: [PATCH] Fix false warning message --- lib/session.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/session.ts b/lib/session.ts index e5f4271..b268c25 100644 --- a/lib/session.ts +++ b/lib/session.ts @@ -2678,7 +2678,10 @@ export async function rpcResponse( const wildcardParams: Path[] = [root.concat(wildcardPath)]; for (const [path, object, writable] of rpcRes.parameterList) { - if (!path.toString().startsWith(rpcReq.parameterPath)) { + if ( + !path.toString().startsWith(rpcReq.parameterPath) && + !(`${path.toString()}.` === rpcReq.parameterPath && !rpcReq.nextLevel) + ) { logger.accessWarn({ sessionContext: sessionContext, message: "Unexpected parameter in response",