{"action":"closed","issue":{"url":"https://api.github.com/repos/NSwag/NSwag/issues/720","repository_url":"https://api.github.com/repos/NSwag/NSwag","labels_url":"https://api.github.com/repos/NSwag/NSwag/issues/720/labels{/name}","comments_url":"https://api.github.com/repos/NSwag/NSwag/issues/720/comments","events_url":"https://api.github.com/repos/NSwag/NSwag/issues/720/events","html_url":"https://github.com/NSwag/NSwag/issues/720","id":221479659,"number":720,"title":"Required nullable<primitive types> could be transformed into non-nullable primitive types","user":{"login":"molszews","id":2878612,"avatar_url":"https://avatars2.githubusercontent.com/u/2878612?v=3","gravatar_id":"","url":"https://api.github.com/users/molszews","html_url":"https://github.com/molszews","followers_url":"https://api.github.com/users/molszews/followers","following_url":"https://api.github.com/users/molszews/following{/other_user}","gists_url":"https://api.github.com/users/molszews/gists{/gist_id}","starred_url":"https://api.github.com/users/molszews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molszews/subscriptions","organizations_url":"https://api.github.com/users/molszews/orgs","repos_url":"https://api.github.com/users/molszews/repos","events_url":"https://api.github.com/users/molszews/events{/privacy}","received_events_url":"https://api.github.com/users/molszews/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-13T07:22:23Z","updated_at":"2017-04-14T08:02:33Z","closed_at":"2017-04-14T08:02:32Z","body":"When you write webapi and you require to pass primitive type, e.g. `int` then you have to put in your model `[Required] public int? my_property {get; set;}`. Could be such properties represented in generated client class simply as `public int my_property {get;set;}`, because null value is not allowed to be passed there anyway?\r\nThe other case is when you reuse that model in action that returns entities. These properties are populated there for sure however for the client they are still nullables (because they are declared as nullables in the first place), however generator knows that they are also `[Required]` so there is no chance for it to be nullable."}}
{"actor":{"display_login":"molszews"}}