-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
property name with type
is not working correctly with loopback complex model
#4131
Comments
NOTE: If we have the property name as |
Hi @PRAKASH-SIVAGURUNATHAN could you fork https://github.com/strongloop/loopback-sandbox and provide some example code to reproduce your error? Thanks. I can help you investigate. From your description, a property named "type" has conflict with some code in https://github.com/strongloop/loopback-datasource-juggler/blob/master/lib/model-builder.js, it will be quicker for us to debug with a sample app. |
@jannyHou : I have created an forked branch of loopback-sandbox and pushed the model which our product is using. Please refer to the forked branch of |
Thanks for the sample app @PRAKASH-SIVAGURUNATHAN. I can confirm it as a bug. Taking a look at the cause and trying to find a fix. |
@PRAKASH-SIVAGURUNATHAN which connector are you using, by the way? |
Bug is caused by the sub-property name We are already not allowing I am working on a solution. |
@PRAKASH-SIVAGURUNATHAN it is fixed in loopbackio/loopback-datasource-juggler#1693. |
We have a model definition as follows
In explorer the structure of the items is coming as shown below
When we test the model by providing the values for

items
property, the response does not have a valid structure foritems
The text was updated successfully, but these errors were encountered: