We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2be32d1 commit 83d26c1Copy full SHA for 83d26c1
1 file changed
src/utils/utils.ts
@@ -13,7 +13,12 @@ import { ILogger } from "../models/logger.model";
13
14
function patchWalkPath(target: any, path: string) {
15
if (path === '' || path === '/') {
16
- return target;
+ throw new UniversalApiError(
17
+ "PATCH body request malformed: cannot use root path for this operation",
18
+ "MANUALLY_HANDLED",
19
+ "",
20
+ Constants.HTTP_STATUS_CODE.BAD_REQUEST
21
+ );
22
}
23
const segments = path.split('/').filter(s => s !== '');
24
let current = target;
0 commit comments