{"action":"opened","issue":{"url":"https://api.github.com/repos/nelmio/NelmioApiDocBundle/issues/677","labels_url":"https://api.github.com/repos/nelmio/NelmioApiDocBundle/issues/677/labels{/name}","comments_url":"https://api.github.com/repos/nelmio/NelmioApiDocBundle/issues/677/comments","events_url":"https://api.github.com/repos/nelmio/NelmioApiDocBundle/issues/677/events","html_url":"https://github.com/nelmio/NelmioApiDocBundle/issues/677","id":95457050,"number":677,"title":"In output doesnt show @JMS\\VirtualProperty properties.","user":{"login":"JanisGruzis","id":1638324,"avatar_url":"https://avatars.githubusercontent.com/u/1638324?v=3","gravatar_id":"","url":"https://api.github.com/users/JanisGruzis","html_url":"https://github.com/JanisGruzis","followers_url":"https://api.github.com/users/JanisGruzis/followers","following_url":"https://api.github.com/users/JanisGruzis/following{/other_user}","gists_url":"https://api.github.com/users/JanisGruzis/gists{/gist_id}","starred_url":"https://api.github.com/users/JanisGruzis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanisGruzis/subscriptions","organizations_url":"https://api.github.com/users/JanisGruzis/orgs","repos_url":"https://api.github.com/users/JanisGruzis/repos","events_url":"https://api.github.com/users/JanisGruzis/events{/privacy}","received_events_url":"https://api.github.com/users/JanisGruzis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-16T15:16:52Z","updated_at":"2015-07-16T15:16:52Z","closed_at":null,"body":"I have this piece of code\r\n\r\n    /**\r\n     * @JMS\\VirtualProperty\r\n     * @JMS\\SerializedName(\"customerId\")\r\n     * @JMS\\Groups({\"api_triplet\"})\r\n     */\r\n    public function getCustomerId()\r\n    {\r\n        return $this->getCustomer()->getId();\r\n    }\r\n\r\nAnd when documentation is generated, customerId doesnt show up in return part of API doc. This is my output annotation part:\r\n\r\n     *      output={\r\n     *          \"class\"=\"array<Common\\ChatBundle\\Entity\\ChatTriplet>\",\r\n     *          \"groups\"={ \"Default\", \"api_triplet\", \"customer\"}\r\n     *      }\r\n\r\nMust mention that in real request response the field is serialized and returned.\r\n\r\nMaybe NelmioApiDocBundle ignores @JMS\\VirtualProperty???"}}