{"action":"created","issue":{"url":"https://api.github.com/repos/Ivshti/linvodb3/issues/91","repository_url":"https://api.github.com/repos/Ivshti/linvodb3","labels_url":"https://api.github.com/repos/Ivshti/linvodb3/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/Ivshti/linvodb3/issues/91/comments","events_url":"https://api.github.com/repos/Ivshti/linvodb3/issues/91/events","html_url":"https://github.com/Ivshti/linvodb3/issues/91","id":336977523,"node_id":"MDU6SXNzdWUzMzY5Nzc1MjM=","number":91,"title":"BUG With nested object","user":{"login":"orlandodemauro","id":14298717,"node_id":"MDQ6VXNlcjE0Mjk4NzE3","avatar_url":"https://avatars1.githubusercontent.com/u/14298717?v=4","gravatar_id":"","url":"https://api.github.com/users/orlandodemauro","html_url":"https://github.com/orlandodemauro","followers_url":"https://api.github.com/users/orlandodemauro/followers","following_url":"https://api.github.com/users/orlandodemauro/following{/other_user}","gists_url":"https://api.github.com/users/orlandodemauro/gists{/gist_id}","starred_url":"https://api.github.com/users/orlandodemauro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orlandodemauro/subscriptions","organizations_url":"https://api.github.com/users/orlandodemauro/orgs","repos_url":"https://api.github.com/users/orlandodemauro/repos","events_url":"https://api.github.com/users/orlandodemauro/events{/privacy}","received_events_url":"https://api.github.com/users/orlandodemauro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-29T12:18:54Z","updated_at":"2018-07-03T07:10:09Z","closed_at":"2018-07-02T11:29:54Z","author_association":"NONE","body":"hi guys,\r\n\r\nfirst of all thanks for you great work. I´m having issues with the schemas with nested objects i.e.:\r\n\r\n```\r\ncosnt Project = new LinvoDB('Projet', {\r\n  name: { type: String },\r\n  creationDateTime: { type: Number },\r\n  description: { type: String, default: null },\r\n  state: { type: String, enumerable: ['new', 'errors', 'warnings', 'checked'] },\r\n  user: { name: String, email: String, password: Number }\r\n},{});\r\n\r\nPromise.promisifyAll(Project);\r\n\r\nProject.saveAsync({\r\n                  \"name\": \"test\",\r\n                  \"description\": \"test2\"\r\n});\r\n```\r\nis saving the model corectly: `{ name: \"test\", creationDate: \"29/06/2018\", description: \"test2\", state: \"\", user: { name:\"\", email:\"\", password: \"\"}}`\r\n\r\nbut saving a new object is adding a nested schema property in user: `{ name: \"test2\", creationDate: \"29/06/2018\", description: \"test3\", state: \"\", user: { schema: { name:\"\", email:\"\", password: \"\" }, type: {}}`\r\n\r\nand adding a new object it is nesting a new schema property  `{ name: \"test3\", creationDate: \"29/06/2018\", description: \"test4\", state: \"\", user: { schema: { schema:{ schema: { name:\"\", email:\"\", password: \"\" }, type:{} }, type: {} }, type: {} } }`\r\n\r\nany suggestions on how to fix it?\r\n\r\nthe bug is reproducible with the version 3.25.1"},"comment":{"url":"https://api.github.com/repos/Ivshti/linvodb3/issues/comments/402035826","html_url":"https://github.com/Ivshti/linvodb3/issues/91#issuecomment-402035826","issue_url":"https://api.github.com/repos/Ivshti/linvodb3/issues/91","id":402035826,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjAzNTgyNg==","user":{"login":"orlandodemauro","id":14298717,"node_id":"MDQ6VXNlcjE0Mjk4NzE3","avatar_url":"https://avatars1.githubusercontent.com/u/14298717?v=4","gravatar_id":"","url":"https://api.github.com/users/orlandodemauro","html_url":"https://github.com/orlandodemauro","followers_url":"https://api.github.com/users/orlandodemauro/followers","following_url":"https://api.github.com/users/orlandodemauro/following{/other_user}","gists_url":"https://api.github.com/users/orlandodemauro/gists{/gist_id}","starred_url":"https://api.github.com/users/orlandodemauro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orlandodemauro/subscriptions","organizations_url":"https://api.github.com/users/orlandodemauro/orgs","repos_url":"https://api.github.com/users/orlandodemauro/repos","events_url":"https://api.github.com/users/orlandodemauro/events{/privacy}","received_events_url":"https://api.github.com/users/orlandodemauro/received_events","type":"User","site_admin":false},"created_at":"2018-07-03T07:10:09Z","updated_at":"2018-07-03T07:10:09Z","author_association":"NONE","body":"@Ivshti could you please push a new version of the module? thank you. and please let me know how to let the 4 test failing pass"}}
{"actor":{"display_login":"orlandodemauro"}}