{"action":"created","issue":{"url":"https://api.github.com/repos/RSuter/NJsonSchema/issues/623","repository_url":"https://api.github.com/repos/RSuter/NJsonSchema","labels_url":"https://api.github.com/repos/RSuter/NJsonSchema/issues/623/labels{/name}","comments_url":"https://api.github.com/repos/RSuter/NJsonSchema/issues/623/comments","events_url":"https://api.github.com/repos/RSuter/NJsonSchema/issues/623/events","html_url":"https://github.com/RSuter/NJsonSchema/issues/623","id":296687703,"number":623,"title":"Is there a way to create Prism based model classes from JSON schema","user":{"login":"WilfriedRicken","id":15694511,"avatar_url":"https://avatars1.githubusercontent.com/u/15694511?v=4","gravatar_id":"","url":"https://api.github.com/users/WilfriedRicken","html_url":"https://github.com/WilfriedRicken","followers_url":"https://api.github.com/users/WilfriedRicken/followers","following_url":"https://api.github.com/users/WilfriedRicken/following{/other_user}","gists_url":"https://api.github.com/users/WilfriedRicken/gists{/gist_id}","starred_url":"https://api.github.com/users/WilfriedRicken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WilfriedRicken/subscriptions","organizations_url":"https://api.github.com/users/WilfriedRicken/orgs","repos_url":"https://api.github.com/users/WilfriedRicken/repos","events_url":"https://api.github.com/users/WilfriedRicken/events{/privacy}","received_events_url":"https://api.github.com/users/WilfriedRicken/received_events","type":"User","site_admin":false},"labels":[{"id":301054139,"url":"https://api.github.com/repos/RSuter/NJsonSchema/labels/csharp","name":"csharp","color":"bfe5bf","default":false},{"id":155888411,"url":"https://api.github.com/repos/RSuter/NJsonSchema/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-02-13T10:33:53Z","updated_at":"2018-02-13T10:52:39Z","closed_at":null,"author_association":"NONE","body":"Hi, we would like to create Prism based model classes from JSON schema. Something in princliple like that:\r\n\r\npublic class Foo: BindableBase\r\n{\r\n    public string Bar\r\n    {\r\n        get { return _bar; }\r\n        set { SetProperty(ref _bar, value); }\r\n    }\r\n}\r\n\r\nInheritance should also work which means that inherited classes should not derive from BindableBase. In fact, even in the case of Inpc classes INotifyPropertyChanged should be implemented only in the base class, not the derived classes anymore.\r\n\r\nAs far as I can see I can create a new template factory and I can return different template strings for certain parts, so I could influence e.g. the way Inpc is implemented. However, the property InheritanceCode in ClassTemplateModel seems to be fixed, no way to influence it.\r\n\r\nThanks,\r\nWilfried"},"comment":{"url":"https://api.github.com/repos/RSuter/NJsonSchema/issues/comments/365227548","html_url":"https://github.com/RSuter/NJsonSchema/issues/623#issuecomment-365227548","issue_url":"https://api.github.com/repos/RSuter/NJsonSchema/issues/623","id":365227548,"user":{"login":"WilfriedRicken","id":15694511,"avatar_url":"https://avatars1.githubusercontent.com/u/15694511?v=4","gravatar_id":"","url":"https://api.github.com/users/WilfriedRicken","html_url":"https://github.com/WilfriedRicken","followers_url":"https://api.github.com/users/WilfriedRicken/followers","following_url":"https://api.github.com/users/WilfriedRicken/following{/other_user}","gists_url":"https://api.github.com/users/WilfriedRicken/gists{/gist_id}","starred_url":"https://api.github.com/users/WilfriedRicken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WilfriedRicken/subscriptions","organizations_url":"https://api.github.com/users/WilfriedRicken/orgs","repos_url":"https://api.github.com/users/WilfriedRicken/repos","events_url":"https://api.github.com/users/WilfriedRicken/events{/privacy}","received_events_url":"https://api.github.com/users/WilfriedRicken/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T10:52:39Z","updated_at":"2018-02-13T10:52:39Z","author_association":"NONE","body":"Moving InheritanceCode to a template would be sufficient for me in the short term, adding a Prism style would be of course better in the long term..."}}
{"actor":{"display_login":"WilfriedRicken"}}