Wrong parsing requestBody and Where query.object #7224
|
Here is the example code: https://github.com/strongloop/loopback4-example-shopping/blob/master/packages/shopping/src/controllers/user-order.controller.ts#L104 How to reproduce the issue:
Attachment is the code, its swagger and console. I faced this issue in both loopback4-example-shopping project and my other project |
Replies: 2 comments 4 replies
|
This is pretty weird. What curl command does the Swagger UI generate? I can investigate if you can create an simple app with just that route and share the git repo. |
|
I can reproduce the problem and confirm it's a bug in REST parameter parsing. A quick workaround is to move |









I can reproduce the problem and confirm it's a bug in REST parameter parsing. A quick workaround is to move
currentUserProfileto be the last argument.