{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/5181","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/5181/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/5181/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/5181/events","html_url":"https://github.com/swagger-api/swagger-codegen/pull/5181","id":216469620,"number":5181,"title":"[JAVA-SpringFramework][5089] Added a new additional option that allows one to replace the the 'fil…","user":{"login":"LEgregius","id":3844535,"avatar_url":"https://avatars2.githubusercontent.com/u/3844535?v=3","gravatar_id":"","url":"https://api.github.com/users/LEgregius","html_url":"https://github.com/LEgregius","followers_url":"https://api.github.com/users/LEgregius/followers","following_url":"https://api.github.com/users/LEgregius/following{/other_user}","gists_url":"https://api.github.com/users/LEgregius/gists{/gist_id}","starred_url":"https://api.github.com/users/LEgregius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LEgregius/subscriptions","organizations_url":"https://api.github.com/users/LEgregius/orgs","repos_url":"https://api.github.com/users/LEgregius/repos","events_url":"https://api.github.com/users/LEgregius/events{/privacy}","received_events_url":"https://api.github.com/users/LEgregius/received_events","type":"User","site_admin":false},"labels":[{"id":64180619,"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Enhancement:%20Feature","name":"Enhancement: Feature","color":"e5ffe5","default":false},{"id":207268290,"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Server:%20Java","name":"Server: Java","color":"f7c6c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/14","html_url":"https://github.com/swagger-api/swagger-codegen/milestone/14","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/14/labels","id":2318070,"number":14,"title":"v2.2.3","description":"","creator":{"login":"wing328","id":934260,"avatar_url":"https://avatars1.githubusercontent.com/u/934260?v=3","gravatar_id":"","url":"https://api.github.com/users/wing328","html_url":"https://github.com/wing328","followers_url":"https://api.github.com/users/wing328/followers","following_url":"https://api.github.com/users/wing328/following{/other_user}","gists_url":"https://api.github.com/users/wing328/gists{/gist_id}","starred_url":"https://api.github.com/users/wing328/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wing328/subscriptions","organizations_url":"https://api.github.com/users/wing328/orgs","repos_url":"https://api.github.com/users/wing328/repos","events_url":"https://api.github.com/users/wing328/events{/privacy}","received_events_url":"https://api.github.com/users/wing328/received_events","type":"User","site_admin":false},"open_issues":186,"closed_issues":236,"state":"open","created_at":"2017-02-13T09:01:07Z","updated_at":"2017-03-29T04:35:28Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2017-03-23T15:29:54Z","updated_at":"2017-03-29T05:38:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/5181","html_url":"https://github.com/swagger-api/swagger-codegen/pull/5181","diff_url":"https://github.com/swagger-api/swagger-codegen/pull/5181.diff","patch_url":"https://github.com/swagger-api/swagger-codegen/pull/5181.patch"},"body":" **I reworked this PR from an earlier one.  All it really does is fix the commit email.**\r\n\r\nI left a description of the issue here:  #5089\r\n\r\nThis adds a new additional command line property called `resourceStreams` that replaces `java.io.File` with `org.springframework.core.io.Resource` in Spring Framework when specifying a `file` type in the yaml.  I ran normal unit tests, and they passed, and what I added is simple, and should have no effect without specifying the command line option, but it allows me to return file data that isn't stored locally on the rest server serving the api, and it lets me stream it from the original place, through the server, and down to the client without having to store the whole file all at once.\r\n\r\nThe largest block of the code change is providing an example value that shows how to make it work exactly the same as it did by wrapping a `java.io.File` in a `FileSystemResource`, which is an implementation of the Resource interface."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/289987843","html_url":"https://github.com/swagger-api/swagger-codegen/pull/5181#issuecomment-289987843","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/5181","id":289987843,"user":{"login":"cbornet","id":11633333,"avatar_url":"https://avatars2.githubusercontent.com/u/11633333?v=3","gravatar_id":"","url":"https://api.github.com/users/cbornet","html_url":"https://github.com/cbornet","followers_url":"https://api.github.com/users/cbornet/followers","following_url":"https://api.github.com/users/cbornet/following{/other_user}","gists_url":"https://api.github.com/users/cbornet/gists{/gist_id}","starred_url":"https://api.github.com/users/cbornet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbornet/subscriptions","organizations_url":"https://api.github.com/users/cbornet/orgs","repos_url":"https://api.github.com/users/cbornet/repos","events_url":"https://api.github.com/users/cbornet/events{/privacy}","received_events_url":"https://api.github.com/users/cbornet/received_events","type":"User","site_admin":false},"created_at":"2017-03-29T05:38:09Z","updated_at":"2017-03-29T05:38:09Z","body":"I think MultipartFile is already used for file upload (see https://github.com/swagger-api/swagger-codegen/blob/fb7599652794f7127b4f5dfaba4439d1933d3c7f/modules/swagger-codegen/src/main/resources/JavaSpring/apiController.mustache#L19) . So it should be fine."}}
{"actor":{"display_login":"cbornet"}}