{"action":"opened","issue":{"url":"https://api.github.com/repos/RSuter/NJsonSchema/issues/728","repository_url":"https://api.github.com/repos/RSuter/NJsonSchema","labels_url":"https://api.github.com/repos/RSuter/NJsonSchema/issues/728/labels{/name}","comments_url":"https://api.github.com/repos/RSuter/NJsonSchema/issues/728/comments","events_url":"https://api.github.com/repos/RSuter/NJsonSchema/issues/728/events","html_url":"https://github.com/RSuter/NJsonSchema/issues/728","id":336098508,"node_id":"MDU6SXNzdWUzMzYwOTg1MDg=","number":728,"title":"Expose IsRequired to C# Code Generator","user":{"login":"basilfx","id":815976,"node_id":"MDQ6VXNlcjgxNTk3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/815976?v=4","gravatar_id":"","url":"https://api.github.com/users/basilfx","html_url":"https://github.com/basilfx","followers_url":"https://api.github.com/users/basilfx/followers","following_url":"https://api.github.com/users/basilfx/following{/other_user}","gists_url":"https://api.github.com/users/basilfx/gists{/gist_id}","starred_url":"https://api.github.com/users/basilfx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basilfx/subscriptions","organizations_url":"https://api.github.com/users/basilfx/orgs","repos_url":"https://api.github.com/users/basilfx/repos","events_url":"https://api.github.com/users/basilfx/events{/privacy}","received_events_url":"https://api.github.com/users/basilfx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-27T06:52:37Z","updated_at":"2018-06-27T06:52:37Z","closed_at":null,"author_association":"NONE","body":"To add certain functionality to the generated classes, I need to know if a property is required or not.\r\n\r\nI currently use `{% if property.JsonPropertyRequiredCode contains \"NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore\" %}`, which could be simplified if `IsRequired` (and maybe `IsOptional`) would be exposed on [PropertyModel.cs](https://github.com/RSuter/NJsonSchema/blob/master/src/NJsonSchema.CodeGeneration.CSharp/Models/PropertyModel.cs).\r\n\r\nWould it be possible to expose these fields?"}}
{"actor":{"display_login":"basilfx"}}