{"action":"created","issue":{"url":"https://api.github.com/repos/TimLuq/wsdl-to-ts/issues/8","repository_url":"https://api.github.com/repos/TimLuq/wsdl-to-ts","labels_url":"https://api.github.com/repos/TimLuq/wsdl-to-ts/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/TimLuq/wsdl-to-ts/issues/8/comments","events_url":"https://api.github.com/repos/TimLuq/wsdl-to-ts/issues/8/events","html_url":"https://github.com/TimLuq/wsdl-to-ts/issues/8","id":379429671,"node_id":"MDU6SXNzdWUzNzk0Mjk2NzE=","number":8,"title":"Support minOccurs=0","user":{"login":"pauldraper","id":1403271,"node_id":"MDQ6VXNlcjE0MDMyNzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1403271?v=4","gravatar_id":"","url":"https://api.github.com/users/pauldraper","html_url":"https://github.com/pauldraper","followers_url":"https://api.github.com/users/pauldraper/followers","following_url":"https://api.github.com/users/pauldraper/following{/other_user}","gists_url":"https://api.github.com/users/pauldraper/gists{/gist_id}","starred_url":"https://api.github.com/users/pauldraper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauldraper/subscriptions","organizations_url":"https://api.github.com/users/pauldraper/orgs","repos_url":"https://api.github.com/users/pauldraper/repos","events_url":"https://api.github.com/users/pauldraper/events{/privacy}","received_events_url":"https://api.github.com/users/pauldraper/received_events","type":"User","site_admin":false},"labels":[{"id":624744410,"node_id":"MDU6TGFiZWw2MjQ3NDQ0MTA=","url":"https://api.github.com/repos/TimLuq/wsdl-to-ts/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/TimLuq/wsdl-to-ts/milestones/1","html_url":"https://github.com/TimLuq/wsdl-to-ts/milestone/1","labels_url":"https://api.github.com/repos/TimLuq/wsdl-to-ts/milestones/1/labels","id":2730175,"node_id":"MDk6TWlsZXN0b25lMjczMDE3NQ==","number":1,"title":"v1.0","description":null,"creator":{"login":"TimLuq","id":1119847,"node_id":"MDQ6VXNlcjExMTk4NDc=","avatar_url":"https://avatars0.githubusercontent.com/u/1119847?v=4","gravatar_id":"","url":"https://api.github.com/users/TimLuq","html_url":"https://github.com/TimLuq","followers_url":"https://api.github.com/users/TimLuq/followers","following_url":"https://api.github.com/users/TimLuq/following{/other_user}","gists_url":"https://api.github.com/users/TimLuq/gists{/gist_id}","starred_url":"https://api.github.com/users/TimLuq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimLuq/subscriptions","organizations_url":"https://api.github.com/users/TimLuq/orgs","repos_url":"https://api.github.com/users/TimLuq/repos","events_url":"https://api.github.com/users/TimLuq/events{/privacy}","received_events_url":"https://api.github.com/users/TimLuq/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":1,"state":"open","created_at":"2017-08-29T14:15:22Z","updated_at":"2018-11-10T16:50:32Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2018-11-10T15:08:30Z","updated_at":"2018-11-11T11:09:58Z","closed_at":null,"author_association":"NONE","body":"Should be optional or undefined if minOccurs=0"},"comment":{"url":"https://api.github.com/repos/TimLuq/wsdl-to-ts/issues/comments/437661019","html_url":"https://github.com/TimLuq/wsdl-to-ts/issues/8#issuecomment-437661019","issue_url":"https://api.github.com/repos/TimLuq/wsdl-to-ts/issues/8","id":437661019,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzY2MTAxOQ==","user":{"login":"TimLuq","id":1119847,"node_id":"MDQ6VXNlcjExMTk4NDc=","avatar_url":"https://avatars0.githubusercontent.com/u/1119847?v=4","gravatar_id":"","url":"https://api.github.com/users/TimLuq","html_url":"https://github.com/TimLuq","followers_url":"https://api.github.com/users/TimLuq/followers","following_url":"https://api.github.com/users/TimLuq/following{/other_user}","gists_url":"https://api.github.com/users/TimLuq/gists{/gist_id}","starred_url":"https://api.github.com/users/TimLuq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimLuq/subscriptions","organizations_url":"https://api.github.com/users/TimLuq/orgs","repos_url":"https://api.github.com/users/TimLuq/repos","events_url":"https://api.github.com/users/TimLuq/events{/privacy}","received_events_url":"https://api.github.com/users/TimLuq/received_events","type":"User","site_admin":false},"created_at":"2018-11-11T11:09:58Z","updated_at":"2018-11-11T11:09:58Z","author_association":"OWNER","body":"Yes, the way to handle the situation currently is to either generate the types once and then do manual corrections or, it pains me to say, have objects containing properties whose `undefined` or `null` values has been cast to `any`.\r\n\r\n```ts\r\ninterface ISomeInterface {\r\n  description: string; // : string | null - in reality supports xsi:nil=\"true\"\r\n  name: string;\r\n  restricted: boolean; // ?: boolean - in reality minOccurs=\"0\"\r\n}\r\nconst o: ISomeInterface = {\r\n  description: null as any,\r\n  name: \"example\",\r\n  restricted: undefined as any,\r\n};\r\n```"}}
{"actor":{"display_login":"TimLuq"}}