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 |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
-
I can reproduce the problem and confirm it's a bug in REST parameter parsing. A quick workaround is to move |
Beta Was this translation helpful? Give feedback.
I can reproduce the problem and confirm it's a bug in REST parameter parsing. A quick workaround is to move
currentUserProfile
to be the last argument.