{"action":"created","issue":{"url":"https://api.github.com/repos/lmazuel/swagger-to-sdk/issues/5","repository_url":"https://api.github.com/repos/lmazuel/swagger-to-sdk","labels_url":"https://api.github.com/repos/lmazuel/swagger-to-sdk/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/lmazuel/swagger-to-sdk/issues/5/comments","events_url":"https://api.github.com/repos/lmazuel/swagger-to-sdk/issues/5/events","html_url":"https://github.com/lmazuel/swagger-to-sdk/issues/5","id":170977645,"number":5,"title":"Support for Grouping based on \"output_dir\" key","user":{"login":"vishrutshah","id":8782776,"avatar_url":"https://avatars.githubusercontent.com/u/8782776?v=3","gravatar_id":"","url":"https://api.github.com/users/vishrutshah","html_url":"https://github.com/vishrutshah","followers_url":"https://api.github.com/users/vishrutshah/followers","following_url":"https://api.github.com/users/vishrutshah/following{/other_user}","gists_url":"https://api.github.com/users/vishrutshah/gists{/gist_id}","starred_url":"https://api.github.com/users/vishrutshah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishrutshah/subscriptions","organizations_url":"https://api.github.com/users/vishrutshah/orgs","repos_url":"https://api.github.com/users/vishrutshah/repos","events_url":"https://api.github.com/users/vishrutshah/events{/privacy}","received_events_url":"https://api.github.com/users/vishrutshah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-12T23:27:49Z","updated_at":"2016-09-21T18:31:34Z","closed_at":null,"body":"We have a Ruby generator that takes care about the generating the sdk and it's wrapper top level folder. In that case, when we model the swagger_to_sdk_config.json's `projects` node as\r\n\r\n\r\n```\r\n...\r\n    \"azure_mgmt_datalake_analytics\": {\r\n      \"swagger\": \"arm-datalake-analytics/catalog/2015-10-01-preview/swagger/catalog.json\",\r\n      \"autorest_options\": {\r\n        \"Namespace\": \"Azure::ARM::DataLakeAnalytics::Catalog\",\r\n        \"PackageName\": \"azure_mgmt_datalake_analytics_catalog\"\r\n      },\r\n      \"output_dir\": \"azure_mgmt_datalake_analytics/lib\",\r\n      \"wrapper_filesOrDirs\": [\r\n        \"azure_mgmt_datalake_analytics.rb\"\r\n      ]\r\n    },\r\n    \"azure_mgmt_datalake_analytics\": {\r\n      \"swagger\": \"arm-datalake-analytics/job/2016-03-20-preview/swagger/job.json\",\r\n      \"autorest_options\": {\r\n        \"Namespace\": \"Azure::ARM::DataLakeAnalytics::Job\",\r\n        \"PackageName\": \"azure_mgmt_datalake_analytics_job\"\r\n      },\r\n      \"output_dir\": \"azure_mgmt_datalake_analytics/lib\",\r\n      \"wrapper_filesOrDirs\": [\r\n        \"azure_mgmt_datalake_analytics.rb\"\r\n      ]\r\n    },\r\n    \"azure_mgmt_datalake_analytics\": {\r\n      \"swagger\": \"arm-datalake-analytics/account/2015-10-01-preview/swagger/account.json\",\r\n      \"autorest_options\": {\r\n        \"Namespace\": \"Azure::ARM::DataLakeAnalytics::Account\",\r\n        \"PackageName\": \"azure_mgmt_datalake_analytics_account\",\r\n        \"PackageVersion\": \"0.5.0\"\r\n      },\r\n      \"output_dir\": \"azure_mgmt_datalake_analytics/lib\",\r\n      \"wrapper_filesOrDirs\": [\r\n        \"azure_mgmt_datalake_analytics.rb\"\r\n      ]\r\n    },\r\n...\r\n```\r\n\r\nAs Ruby code generator, takes care about creating sub folders (azure_mgmt_datalake_analytics_catalog, azure_mgmt_datalake_analytics_job, azure_mgmt_datalake_analytics_account), swagger-to-sdk should not delete the folders for each projects mentioned about before generating the code, otherwise it'll end up generating the code for only on project context and deleting the other two. \r\n\r\nWe'd like to swagger-to-sdk tool's project context to understand output_dir group and delete things once for the grouped context and run generate three times in a raw to generate clients for each of three projects. \r\n\r\nThanks,\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lmazuel/swagger-to-sdk/issues/comments/248701401","html_url":"https://github.com/lmazuel/swagger-to-sdk/issues/5#issuecomment-248701401","issue_url":"https://api.github.com/repos/lmazuel/swagger-to-sdk/issues/5","id":248701401,"user":{"login":"vishrutshah","id":8782776,"avatar_url":"https://avatars.githubusercontent.com/u/8782776?v=3","gravatar_id":"","url":"https://api.github.com/users/vishrutshah","html_url":"https://github.com/vishrutshah","followers_url":"https://api.github.com/users/vishrutshah/followers","following_url":"https://api.github.com/users/vishrutshah/following{/other_user}","gists_url":"https://api.github.com/users/vishrutshah/gists{/gist_id}","starred_url":"https://api.github.com/users/vishrutshah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishrutshah/subscriptions","organizations_url":"https://api.github.com/users/vishrutshah/orgs","repos_url":"https://api.github.com/users/vishrutshah/repos","events_url":"https://api.github.com/users/vishrutshah/events{/privacy}","received_events_url":"https://api.github.com/users/vishrutshah/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T18:31:34Z","updated_at":"2016-09-21T18:31:34Z","body":"@lmazuel I like the new structure and it conveys the right explicit message that \r\n\r\n` project X` is generated from `swaggers list` of swagger files under `output_dir` with `wrapper_filesOrDirs` files untouched. \r\n\r\nThis should perfectly work in our scenario. "}}
{"actor":{"display_login":"vishrutshah"}}