{"action":"opened","issue":{"url":"https://api.github.com/repos/YousefED/typescript-json-schema/issues/233","repository_url":"https://api.github.com/repos/YousefED/typescript-json-schema","labels_url":"https://api.github.com/repos/YousefED/typescript-json-schema/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/YousefED/typescript-json-schema/issues/233/comments","events_url":"https://api.github.com/repos/YousefED/typescript-json-schema/issues/233/events","html_url":"https://github.com/YousefED/typescript-json-schema/issues/233","id":345450362,"node_id":"MDU6SXNzdWUzNDU0NTAzNjI=","number":233,"title":"wrong schemas generated","user":{"login":"wiggisser","id":3647678,"node_id":"MDQ6VXNlcjM2NDc2Nzg=","avatar_url":"https://avatars3.githubusercontent.com/u/3647678?v=4","gravatar_id":"","url":"https://api.github.com/users/wiggisser","html_url":"https://github.com/wiggisser","followers_url":"https://api.github.com/users/wiggisser/followers","following_url":"https://api.github.com/users/wiggisser/following{/other_user}","gists_url":"https://api.github.com/users/wiggisser/gists{/gist_id}","starred_url":"https://api.github.com/users/wiggisser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiggisser/subscriptions","organizations_url":"https://api.github.com/users/wiggisser/orgs","repos_url":"https://api.github.com/users/wiggisser/repos","events_url":"https://api.github.com/users/wiggisser/events{/privacy}","received_events_url":"https://api.github.com/users/wiggisser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-28T13:59:16Z","updated_at":"2018-07-28T13:59:16Z","closed_at":null,"author_association":"NONE","body":"I have the following test interface \r\n\r\n    interface i1 {\r\n        p1 : number;\r\n        p2 : boolean;\r\n    }\r\n\r\nand the file is located in `/tmp/js/simple.ts`  and I have the following source `main.ts` located in a development project somewhere in my home-dir\r\n\r\n```\r\nimport * as TJS from \"typescript-json-schema\"\r\nconst compilerOptions: TJS.CompilerOptions = {\r\n  strict: true\r\n}\r\n\r\nconst settings: TJS.PartialArgs = {\r\n  required: true\r\n};\r\n\r\nlet program = TJS.getProgramFromFiles([\"/tmp/js/simple.ts\"], compilerOptions, \"/tmp/js\");\r\nconst generator = TJS.buildGenerator(program, settings);\r\nconst symbols = generator!.getUserSymbols();\r\nconsole.log(symbols.length);\r\n```\r\n\r\n\r\nAnd I get an output of 454. When I list these symbols there seem to be schemas for all the modules I installed in my development project. It seems, the program is always generated for the executing main.js, not the file I pass as parameter.\r\n\r\nWhen I install this package globally, and execute it globally with `ypescript-json-schema /tmp/js/simple.ts \"*\"` I get the expected result, of just the schema for the only interface in simple.ts\r\n\r\nWhat am I doing wrong? TIA"}}
{"actor":{"display_login":"wiggisser"}}