{"action":"closed","issue":{"url":"https://api.github.com/repos/vojtechhabarta/typescript-generator/issues/91","repository_url":"https://api.github.com/repos/vojtechhabarta/typescript-generator","labels_url":"https://api.github.com/repos/vojtechhabarta/typescript-generator/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/vojtechhabarta/typescript-generator/issues/91/comments","events_url":"https://api.github.com/repos/vojtechhabarta/typescript-generator/issues/91/events","html_url":"https://github.com/vojtechhabarta/typescript-generator/issues/91","id":189511387,"number":91,"title":"JsonTypeInfo and nested interfaces","user":{"login":"ollwenjones","id":1319208,"avatar_url":"https://avatars.githubusercontent.com/u/1319208?v=3","gravatar_id":"","url":"https://api.github.com/users/ollwenjones","html_url":"https://github.com/ollwenjones","followers_url":"https://api.github.com/users/ollwenjones/followers","following_url":"https://api.github.com/users/ollwenjones/following{/other_user}","gists_url":"https://api.github.com/users/ollwenjones/gists{/gist_id}","starred_url":"https://api.github.com/users/ollwenjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ollwenjones/subscriptions","organizations_url":"https://api.github.com/users/ollwenjones/orgs","repos_url":"https://api.github.com/users/ollwenjones/repos","events_url":"https://api.github.com/users/ollwenjones/events{/privacy}","received_events_url":"https://api.github.com/users/ollwenjones/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-15T21:27:37Z","updated_at":"2016-11-18T09:18:43Z","closed_at":"2016-11-18T09:18:43Z","body":"Having trouble with `JsonTypeInfo` generation in the output, for example:\r\n\r\n\r\n```Java\r\n// Java\r\n@JsonTypeInfo(use = Id.NAME, include = As.PROPERTY, property = \"beanTypeName\")\r\npublic interface HasId {\r\n\r\n  /**\r\n   * @return the unique identifier\r\n   */\r\n  IdClass getId();\r\n\t\r\n}\r\n\r\n// results in TypeScript:\r\nexport interface IProvidesDetail extends HasId {\r\n  beanTypeName: \"IProvidesDetail\";\r\n  /**\r\n    * @return id of the home group\r\n    */\r\n  detail: IdClass;\r\n}\r\n\r\n// which is okay, except lots of other interfaces extend IProvidesDetail\r\n\r\nexport interface IProvidesName extends IProvidesDetail {\r\n  beanTypeName: \"IProvidesName\"; // TypeScript error: \"IProvidesName\" != \"IProvidesDetail\"\r\n\r\n  name: string;\r\n}\r\n```\r\n\r\nOpen to any input here, as it's likely I've configured something wrong.\r\nI would be okay with leaving that piece of `@JsonTypeInfo` off, or it could always be `string`, etc."}}
{"actor":{"display_login":"vojtechhabarta"}}