{"action":"closed","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/3744","repository_url":"https://api.github.com/repos/strongloop/loopback","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/3744/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/3744/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/3744/events","html_url":"https://github.com/strongloop/loopback/issues/3744","id":285383858,"number":3744,"title":"Unexpected Element is generated when model has property named \"Type\" in the complex object.","user":{"login":"bhavnagyanchandani","id":17310585,"avatar_url":"https://avatars2.githubusercontent.com/u/17310585?v=4","gravatar_id":"","url":"https://api.github.com/users/bhavnagyanchandani","html_url":"https://github.com/bhavnagyanchandani","followers_url":"https://api.github.com/users/bhavnagyanchandani/followers","following_url":"https://api.github.com/users/bhavnagyanchandani/following{/other_user}","gists_url":"https://api.github.com/users/bhavnagyanchandani/gists{/gist_id}","starred_url":"https://api.github.com/users/bhavnagyanchandani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhavnagyanchandani/subscriptions","organizations_url":"https://api.github.com/users/bhavnagyanchandani/orgs","repos_url":"https://api.github.com/users/bhavnagyanchandani/repos","events_url":"https://api.github.com/users/bhavnagyanchandani/events{/privacy}","received_events_url":"https://api.github.com/users/bhavnagyanchandani/received_events","type":"User","site_admin":false},"labels":[{"id":484521294,"url":"https://api.github.com/repos/strongloop/loopback/labels/stale","name":"stale","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":{"login":"raymondfeng","id":540892,"avatar_url":"https://avatars0.githubusercontent.com/u/540892?v=4","gravatar_id":"","url":"https://api.github.com/users/raymondfeng","html_url":"https://github.com/raymondfeng","followers_url":"https://api.github.com/users/raymondfeng/followers","following_url":"https://api.github.com/users/raymondfeng/following{/other_user}","gists_url":"https://api.github.com/users/raymondfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondfeng/subscriptions","organizations_url":"https://api.github.com/users/raymondfeng/orgs","repos_url":"https://api.github.com/users/raymondfeng/repos","events_url":"https://api.github.com/users/raymondfeng/events{/privacy}","received_events_url":"https://api.github.com/users/raymondfeng/received_events","type":"User","site_admin":false},"assignees":[{"login":"raymondfeng","id":540892,"avatar_url":"https://avatars0.githubusercontent.com/u/540892?v=4","gravatar_id":"","url":"https://api.github.com/users/raymondfeng","html_url":"https://github.com/raymondfeng","followers_url":"https://api.github.com/users/raymondfeng/followers","following_url":"https://api.github.com/users/raymondfeng/following{/other_user}","gists_url":"https://api.github.com/users/raymondfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondfeng/subscriptions","organizations_url":"https://api.github.com/users/raymondfeng/orgs","repos_url":"https://api.github.com/users/raymondfeng/repos","events_url":"https://api.github.com/users/raymondfeng/events{/privacy}","received_events_url":"https://api.github.com/users/raymondfeng/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-01-02T09:18:06Z","updated_at":"2018-03-27T14:38:17Z","closed_at":"2018-03-27T14:38:17Z","author_association":"NONE","body":"when creating a model, I have an element which is a complex-type property with one element named “type” in the model. While using this model to pass the payload to the connector, than  LoopBack is not passing the expected JSON to the connector instead it is passing [object object]. Any pointers on how to fix it  or is this a known isse?\r\nFor reference, attached is the sample model file.\r\n[operation.zip](https://github.com/strongloop/loopback/files/1597124/operation.zip)\r\n\r\n\r\n"}}
{"actor":{"display_login":"stale"}}