{"action":"created","issue":{"url":"https://api.github.com/repos/BigstickCarpet/swagger-server/issues/11","labels_url":"https://api.github.com/repos/BigstickCarpet/swagger-server/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/BigstickCarpet/swagger-server/issues/11/comments","events_url":"https://api.github.com/repos/BigstickCarpet/swagger-server/issues/11/events","html_url":"https://github.com/BigstickCarpet/swagger-server/issues/11","id":103052142,"number":11,"title":"Wrapped response","user":{"login":"edubinin","id":11573764,"avatar_url":"https://avatars.githubusercontent.com/u/11573764?v=3","gravatar_id":"","url":"https://api.github.com/users/edubinin","html_url":"https://github.com/edubinin","followers_url":"https://api.github.com/users/edubinin/followers","following_url":"https://api.github.com/users/edubinin/following{/other_user}","gists_url":"https://api.github.com/users/edubinin/gists{/gist_id}","starred_url":"https://api.github.com/users/edubinin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edubinin/subscriptions","organizations_url":"https://api.github.com/users/edubinin/orgs","repos_url":"https://api.github.com/users/edubinin/repos","events_url":"https://api.github.com/users/edubinin/events{/privacy}","received_events_url":"https://api.github.com/users/edubinin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-25T15:40:12Z","updated_at":"2015-08-31T10:05:27Z","closed_at":"2015-08-31T10:05:27Z","body":"Hi, just wanted to set up a local swagger mocking service to develop my API specification and decided to use your module :)\r\nNot sure if thats bug or no, but here are the details:\r\nI want to wrap some model definitions in swagger response, so contrary to the petstore examples, I want to have my  responses in following format:\r\n```javascript\r\n{\r\n  \"data\": {\r\n  \"id\": 0,\r\n  \"username\": \"johndoe\",\r\n  \"firstName\": \"john\",\r\n  \"lastName\": \"doe\",\r\n  \"email\": \"jdoe@acme.com\",\r\n  \"password\": \"string\",\r\n  \"phone\": \"1233451\",\r\n  \"userStatus\": 0\r\n  },\r\n  \"status\": \"success\"\r\n}\r\n```\r\ninstead of just:\r\n```javascript\r\n{\r\n  \"id\": 0,\r\n  \"username\": \"johndoe\",\r\n  \"firstName\": \"john\",\r\n  \"lastName\": \"doe\",\r\n  \"email\": \"jdoe@acme.com\",\r\n  \"password\": \"string\",\r\n  \"phone\": \"1233451\",\r\n  \"userStatus\": 0\r\n}\r\n```\r\nMy problem is that I tried to achive this in different ways, for example creating the definitions for the wrapper of my models, and feed that definition as an response schema, however I get the original model back in the response. Any clue on what I am doing wrong here ?\r\n\r\nI am using this version -> \"swagger-server\": \"^1.0.0-alpha\"\r\nThanks"},"comment":{"url":"https://api.github.com/repos/BigstickCarpet/swagger-server/issues/comments/136321997","html_url":"https://github.com/BigstickCarpet/swagger-server/issues/11#issuecomment-136321997","issue_url":"https://api.github.com/repos/BigstickCarpet/swagger-server/issues/11","id":136321997,"user":{"login":"edubinin","id":11573764,"avatar_url":"https://avatars.githubusercontent.com/u/11573764?v=3","gravatar_id":"","url":"https://api.github.com/users/edubinin","html_url":"https://github.com/edubinin","followers_url":"https://api.github.com/users/edubinin/followers","following_url":"https://api.github.com/users/edubinin/following{/other_user}","gists_url":"https://api.github.com/users/edubinin/gists{/gist_id}","starred_url":"https://api.github.com/users/edubinin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edubinin/subscriptions","organizations_url":"https://api.github.com/users/edubinin/orgs","repos_url":"https://api.github.com/users/edubinin/repos","events_url":"https://api.github.com/users/edubinin/events{/privacy}","received_events_url":"https://api.github.com/users/edubinin/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T10:05:26Z","updated_at":"2015-08-31T10:05:26Z","body":"Thank you for your help, it works now"}}