{"action":"opened","issue":{"url":"https://api.github.com/repos/NSwag/NSwag/issues/459","repository_url":"https://api.github.com/repos/NSwag/NSwag","labels_url":"https://api.github.com/repos/NSwag/NSwag/issues/459/labels{/name}","comments_url":"https://api.github.com/repos/NSwag/NSwag/issues/459/comments","events_url":"https://api.github.com/repos/NSwag/NSwag/issues/459/events","html_url":"https://github.com/NSwag/NSwag/issues/459","id":192545611,"number":459,"title":"Typescript camelCase issue","user":{"login":"phinett","id":365283,"avatar_url":"https://avatars.githubusercontent.com/u/365283?v=3","gravatar_id":"","url":"https://api.github.com/users/phinett","html_url":"https://github.com/phinett","followers_url":"https://api.github.com/users/phinett/followers","following_url":"https://api.github.com/users/phinett/following{/other_user}","gists_url":"https://api.github.com/users/phinett/gists{/gist_id}","starred_url":"https://api.github.com/users/phinett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phinett/subscriptions","organizations_url":"https://api.github.com/users/phinett/orgs","repos_url":"https://api.github.com/users/phinett/repos","events_url":"https://api.github.com/users/phinett/events{/privacy}","received_events_url":"https://api.github.com/users/phinett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-30T11:48:21Z","updated_at":"2016-11-30T11:48:21Z","closed_at":null,"body":"I am using NSwag to generate both a C# client and a Typescript client, the C# client is working great and using Pascel Casing as i would like it to.\r\n\r\nBut i'm having an issue with the Typescript output, have a look at this:\r\n\r\n```export class CategoryDto { \r\n    id: number; \r\n    name: string; \r\n    isPublished: boolean; \r\n    parentId: number;\r\n\r\n    constructor(data?: any) {\r\n        if (data !== undefined) {\r\n            this.id = data[\"Id\"] !== undefined ? data[\"Id\"] : null;\r\n            this.name = data[\"Name\"] !== undefined ? data[\"Name\"] : null;\r\n            this.isPublished = data[\"IsPublished\"] !== undefined ? data[\"IsPublished\"] : null;\r\n            this.parentId = data[\"ParentId\"] !== undefined ? data[\"ParentId\"] : null;\r\n        }\r\n    }\r\n\r\n    static fromJS(data: any): CategoryDto {\r\n        return new CategoryDto(data);\r\n    }\r\n\r\n    toJS(data?: any) {\r\n        data = data === undefined ? {} : data;\r\n        data[\"Id\"] = this.id !== undefined ? this.id : null;\r\n        data[\"Name\"] = this.name !== undefined ? this.name : null;\r\n        data[\"IsPublished\"] = this.isPublished !== undefined ? this.isPublished : null;\r\n        data[\"ParentId\"] = this.parentId !== undefined ? this.parentId : null;\r\n        return data; \r\n    }\r\n\r\n    toJSON() {\r\n        return JSON.stringify(this.toJS());\r\n    }\r\n\r\n    clone() {\r\n        var json = this.toJSON();\r\n        return new CategoryDto(JSON.parse(json));\r\n    }\r\n}\r\n```\r\n\r\nthis.id = data[\"Id\"] !== undefined ? data[\"Id\"] : null;\r\n\r\nMy Asp.Net Core project is returning camelCase properties in json for my Typescript Client, but the typescript client is trying to use Pascel Casing. I can't see anywhere to correct this from the NSwag studio?\r\n\r\nNot sure if this is a bug, or I am thinking about this in the wrong way?"}}
{"actor":{"display_login":"phinett"}}