{"action":"closed","issue":{"url":"https://api.github.com/repos/Romakita/ts-express-decorators/issues/227","repository_url":"https://api.github.com/repos/Romakita/ts-express-decorators","labels_url":"https://api.github.com/repos/Romakita/ts-express-decorators/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/Romakita/ts-express-decorators/issues/227/comments","events_url":"https://api.github.com/repos/Romakita/ts-express-decorators/issues/227/events","html_url":"https://github.com/Romakita/ts-express-decorators/issues/227","id":293362575,"number":227,"title":"Error after adding swagger support ","user":{"login":"sinner","id":429686,"avatar_url":"https://avatars3.githubusercontent.com/u/429686?v=4","gravatar_id":"","url":"https://api.github.com/users/sinner","html_url":"https://github.com/sinner","followers_url":"https://api.github.com/users/sinner/followers","following_url":"https://api.github.com/users/sinner/following{/other_user}","gists_url":"https://api.github.com/users/sinner/gists{/gist_id}","starred_url":"https://api.github.com/users/sinner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinner/subscriptions","organizations_url":"https://api.github.com/users/sinner/orgs","repos_url":"https://api.github.com/users/sinner/repos","events_url":"https://api.github.com/users/sinner/events{/privacy}","received_events_url":"https://api.github.com/users/sinner/received_events","type":"User","site_admin":false},"labels":[{"id":329676963,"url":"https://api.github.com/repos/Romakita/ts-express-decorators/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Romakita/ts-express-decorators/milestones/9","html_url":"https://github.com/Romakita/ts-express-decorators/milestone/9","labels_url":"https://api.github.com/repos/Romakita/ts-express-decorators/milestones/9/labels","id":3056573,"number":9,"title":"SPRINT FEB","description":"","creator":{"login":"Romakita","id":1763311,"avatar_url":"https://avatars3.githubusercontent.com/u/1763311?v=4","gravatar_id":"","url":"https://api.github.com/users/Romakita","html_url":"https://github.com/Romakita","followers_url":"https://api.github.com/users/Romakita/followers","following_url":"https://api.github.com/users/Romakita/following{/other_user}","gists_url":"https://api.github.com/users/Romakita/gists{/gist_id}","starred_url":"https://api.github.com/users/Romakita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Romakita/subscriptions","organizations_url":"https://api.github.com/users/Romakita/orgs","repos_url":"https://api.github.com/users/Romakita/repos","events_url":"https://api.github.com/users/Romakita/events{/privacy}","received_events_url":"https://api.github.com/users/Romakita/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":1,"state":"open","created_at":"2018-01-23T07:19:36Z","updated_at":"2018-02-01T07:25:14Z","due_on":"2018-02-28T08:00:00Z","closed_at":null},"comments":3,"created_at":"2018-02-01T00:32:00Z","updated_at":"2018-02-01T07:25:14Z","closed_at":"2018-02-01T07:25:14Z","author_association":"NONE","body":"## Description\r\nI'm having these errors (**TypeError: Cannot set property 'id' of undefined** and **TypeError: Cannot read property 'merge' of undefined**) after adding the swagger configuration options:\r\n\r\n## Evidence\r\nThe following is the console output:\r\n\r\n```sh\r\n[2018-01-31T19:35:06.105] [INFO ] [TSED] - Scan files : /var/www/javascript/MyProject/src/converters/**/*.ts\r\nTypeError: Cannot read property 'merge' of undefined\r\n    at Schema.decoratorSchemaFactory_1.decoratorSchemaFactory (/var/www/javascript/MyProject/node_modules/ts-express-decorators/src/jsonschema/decorators/schema.ts:43:16)\r\n    at parameters (/var/www/javascript/MyProject/node_modules/ts-express-decorators/src/jsonschema/utils/decoratorSchemaFactory.ts:25:24)\r\n    at Title.args (/var/www/javascript/MyProject/node_modules/ts-express-decorators/src/swagger/decorators/title.ts:65:46)\r\n    at DecorateProperty (/var/www/javascript/MyProject/node_modules/ts-express-decorators/node_modules/reflect-metadata/Reflect.ts:1214:35)\r\n    at Object.decorate (/var/www/javascript/MyProject/node_modules/ts-express-decorators/node_modules/reflect-metadata/Reflect.ts:737:24)\r\n    at __decorate (/var/www/javascript/MyProject/src/controllers/current/CalendarCtrl.ts:4:92)\r\n    at Object.<anonymous> (/var/www/javascript/MyProject/src/controllers/current/CalendarCtrl.ts:53:1)\r\n    at Module._compile (module.js:643:30)\r\n    at Module.m._compile (/var/www/javascript/MyProject/node_modules/ts-node/src/index.ts:392:23)\r\n    at Module._extensions..js (module.js:654:10)\r\n(node:21958) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: Cannot read property 'merge' of undefined\r\n(node:21958) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.\r\n[nodemon] clean exit - waiting for changes before restart\r\n\r\n[2018-01-31T18:37:30.791] [INFO ] [TSED] - Swagger Json is available on http://0.0.0.0:3080/api-docs/swagger.json\r\nTypeError: Cannot set property 'id' of undefined\r\n    at keys.forEach (/var/www/javascript/MyProject/node_modules/ts-express-decorators/src/swagger/class/OpenApiParamsBuilder.ts:117:37)\r\n    at Array.forEach (<anonymous>)\r\n    at OpenApiParamsBuilder.createSchema (/var/www/javascript/MyProject/node_modules/ts-express-decorators/src/swagger/class/OpenApiParamsBuilder.ts:116:14)\r\n    at _parameters.injectedParams.map (/var/www/javascript/MyProject/node_modules/ts-express-decorators/src/swagger/class/OpenApiParamsBuilder.ts:47:73)\r\n    at Array.map (<anonymous>)\r\n    at OpenApiParamsBuilder.build (/var/www/javascript/MyProject/node_modules/ts-express-decorators/src/swagger/class/OpenApiParamsBuilder.ts:31:14)\r\n    at OpenApiEndpointBuilder.build (/var/www/javascript/MyProject/node_modules/ts-express-decorators/src/swagger/class/OpenApiEndpointBuilder.ts:41:14)\r\n    at ctrl.endpoints.forEach (/var/www/javascript/MyProject/node_modules/ts-express-decorators/src/swagger/services/SwaggerService.ts:186:83)\r\n    at Array.forEach (<anonymous>)\r\n    at SwaggerService.buildRoutes (/var/www/javascript/MyProject/node_modules/ts-express-decorators/src/swagger/services/SwaggerService.ts:182:24)\r\n(node:16077) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: Cannot set property 'id' of undefined\r\n(node:16077) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.\r\n[nodemon] clean exit - waiting for changes before restart\r\n```\r\n\r\n## Informations\r\n\r\nType | Version\r\n Bug |  3.9.1\r\n\r\n****\r\n\r\n\r\nA few sentences describing the overall goals of the issue.\r\n\r\n\r\n## Todos\r\n\r\n- [ ] Example (log, usecase, etc...)\r\n- [x] Ts.ED version (bug/question)"}}
{"actor":{"display_login":"Romakita"}}