{"action":"created","issue":{"url":"https://api.github.com/repos/RSuter/NSwag/issues/1776","repository_url":"https://api.github.com/repos/RSuter/NSwag","labels_url":"https://api.github.com/repos/RSuter/NSwag/issues/1776/labels{/name}","comments_url":"https://api.github.com/repos/RSuter/NSwag/issues/1776/comments","events_url":"https://api.github.com/repos/RSuter/NSwag/issues/1776/events","html_url":"https://github.com/RSuter/NSwag/issues/1776","id":384961924,"node_id":"MDU6SXNzdWUzODQ5NjE5MjQ=","number":1776,"title":"Invalid generated method names (with brackets)","user":{"login":"semso-software","id":45404131,"node_id":"MDQ6VXNlcjQ1NDA0MTMx","avatar_url":"https://avatars3.githubusercontent.com/u/45404131?v=4","gravatar_id":"","url":"https://api.github.com/users/semso-software","html_url":"https://github.com/semso-software","followers_url":"https://api.github.com/users/semso-software/followers","following_url":"https://api.github.com/users/semso-software/following{/other_user}","gists_url":"https://api.github.com/users/semso-software/gists{/gist_id}","starred_url":"https://api.github.com/users/semso-software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semso-software/subscriptions","organizations_url":"https://api.github.com/users/semso-software/orgs","repos_url":"https://api.github.com/users/semso-software/repos","events_url":"https://api.github.com/users/semso-software/events{/privacy}","received_events_url":"https://api.github.com/users/semso-software/received_events","type":"User","site_admin":false},"labels":[{"id":374604058,"node_id":"MDU6TGFiZWwzNzQ2MDQwNTg=","url":"https://api.github.com/repos/RSuter/NSwag/labels/state:%20done","name":"state: done","color":"0052cc","default":false},{"id":255705723,"node_id":"MDU6TGFiZWwyNTU3MDU3MjM=","url":"https://api.github.com/repos/RSuter/NSwag/labels/type:%20question","name":"type: question","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-27T19:59:53Z","updated_at":"2018-11-29T08:53:46Z","closed_at":null,"author_association":"NONE","body":"Hello @RSuter \r\n\r\nI was trying generate a c# client class from a swagger json file.\r\nThe tool generates the client nicely but it won't build because of brackets in the method names.\r\n\r\n```\r\nSystem.Threading.Tasks.Task<ApiResponse> OrdersAddedOnOn}Async(System.DateTime added_on,\r\n```\r\n\r\nMy nswag file:\r\n```\r\n\"codeGenerators\": {\r\n    \"swaggerToCSharpClient\": {\r\n      \"clientBaseClass\": null,\r\n      \"configurationClass\": null,\r\n      \"generateClientClasses\": true,\r\n      \"generateClientInterfaces\": false,\r\n      \"generateDtoTypes\": true,\r\n      \"injectHttpClient\": true,\r\n      \"disposeHttpClient\": true,\r\n      \"protectedMethods\": [],\r\n      \"generateExceptionClasses\": true,\r\n      \"exceptionClass\": \"SwaggerException\",\r\n      \"wrapDtoExceptions\": true,\r\n      \"useHttpClientCreationMethod\": false,\r\n      \"httpClientType\": \"System.Net.Http.HttpClient\",\r\n      \"useHttpRequestMessageCreationMethod\": false,\r\n      \"useBaseUrl\": true,\r\n      \"generateBaseUrlProperty\": true,\r\n      \"generateSyncMethods\": false,\r\n      \"exposeJsonSerializerSettings\": false,\r\n      \"clientClassAccessModifier\": \"public\",\r\n      \"typeAccessModifier\": \"public\",\r\n      \"generateContractsOutput\": false,\r\n      \"contractsNamespace\": null,\r\n      \"contractsOutputFilePath\": null,\r\n      \"parameterDateTimeFormat\": \"s\",\r\n      \"generateUpdateJsonSerializerSettingsMethod\": true,\r\n      \"serializeTypeInformation\": false,\r\n      \"queryNullValue\": \"\",\r\n      \"className\": \"{controller}Client\",\r\n      \"operationGenerationMode\": \"SingleClientFromPathSegments\",\r\n      \"additionalNamespaceUsages\": [],\r\n      \"additionalContractNamespaceUsages\": [],\r\n      \"generateOptionalParameters\": true,\r\n      \"generateJsonMethods\": true,\r\n      \"enforceFlagEnums\": false,\r\n      \"parameterArrayType\": \"System.Collections.Generic.IEnumerable\",\r\n      \"parameterDictionaryType\": \"System.Collections.Generic.IDictionary\",\r\n      \"responseArrayType\": \"System.Collections.ObjectModel.ObservableCollection\",\r\n      \"responseDictionaryType\": \"System.Collections.Generic.Dictionary\",\r\n      \"wrapResponses\": false,\r\n      \"wrapResponseMethods\": [],\r\n      \"generateResponseClasses\": true,\r\n      \"responseClass\": \"SwaggerResponse\",\r\n      \"namespace\": \"MyNamespace\",\r\n      \"requiredPropertiesMustBeDefined\": true,\r\n      \"dateType\": \"System.DateTime\",\r\n      \"jsonConverters\": null,\r\n      \"dateTimeType\": \"System.DateTime\",\r\n      \"timeType\": \"System.TimeSpan\",\r\n      \"timeSpanType\": \"System.TimeSpan\",\r\n      \"arrayType\": \"System.Collections.ObjectModel.ObservableCollection\",\r\n      \"arrayInstanceType\": null,\r\n      \"dictionaryType\": \"System.Collections.Generic.Dictionary\",\r\n      \"dictionaryInstanceType\": null,\r\n      \"arrayBaseType\": \"System.Collections.ObjectModel.ObservableCollection\",\r\n      \"dictionaryBaseType\": \"System.Collections.Generic.Dictionary\",\r\n      \"classStyle\": \"Inpc\",\r\n      \"generateDefaultValues\": true,\r\n      \"generateDataAnnotations\": false,\r\n      \"excludedTypeNames\": [],\r\n      \"handleReferences\": false,\r\n      \"generateImmutableArrayProperties\": true,\r\n      \"generateImmutableDictionaryProperties\": true,\r\n      \"jsonSerializerSettingsTransformationMethod\": null,\r\n      \"templateDirectory\": null,\r\n      \"typeNameGeneratorType\": null,\r\n      \"propertyNameGeneratorType\": null,\r\n      \"enumNameGeneratorType\": null,\r\n      \"serviceHost\": null,\r\n      \"serviceSchemes\": null,\r\n      \"output\": \"../../../Projecten/temp/OpenCartClient/Client.cs\"\r\n    }\r\n\r\n```\r\nThe json\r\nSorry cannot post the json body because it's to long, here by the URI\r\nhttp://api.opencart-api.com/demo/admin/index.json\r\n\r\nAm i missing an parameter or is the provided json invalid?"},"comment":{"url":"https://api.github.com/repos/RSuter/NSwag/issues/comments/442754491","html_url":"https://github.com/RSuter/NSwag/issues/1776#issuecomment-442754491","issue_url":"https://api.github.com/repos/RSuter/NSwag/issues/1776","id":442754491,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mjc1NDQ5MQ==","user":{"login":"semso-software","id":45404131,"node_id":"MDQ6VXNlcjQ1NDA0MTMx","avatar_url":"https://avatars3.githubusercontent.com/u/45404131?v=4","gravatar_id":"","url":"https://api.github.com/users/semso-software","html_url":"https://github.com/semso-software","followers_url":"https://api.github.com/users/semso-software/followers","following_url":"https://api.github.com/users/semso-software/following{/other_user}","gists_url":"https://api.github.com/users/semso-software/gists{/gist_id}","starred_url":"https://api.github.com/users/semso-software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semso-software/subscriptions","organizations_url":"https://api.github.com/users/semso-software/orgs","repos_url":"https://api.github.com/users/semso-software/repos","events_url":"https://api.github.com/users/semso-software/events{/privacy}","received_events_url":"https://api.github.com/users/semso-software/received_events","type":"User","site_admin":false},"created_at":"2018-11-29T08:53:46Z","updated_at":"2018-11-29T08:53:46Z","author_association":"NONE","body":"Thank you for looking into this. Is there any documentation on writing our own implementation?"}}
{"actor":{"display_login":"semso-software"}}