{"action":"created","issue":{"url":"https://api.github.com/repos/nelmio/NelmioApiDocBundle/issues/833","repository_url":"https://api.github.com/repos/nelmio/NelmioApiDocBundle","labels_url":"https://api.github.com/repos/nelmio/NelmioApiDocBundle/issues/833/labels{/name}","comments_url":"https://api.github.com/repos/nelmio/NelmioApiDocBundle/issues/833/comments","events_url":"https://api.github.com/repos/nelmio/NelmioApiDocBundle/issues/833/events","html_url":"https://github.com/nelmio/NelmioApiDocBundle/issues/833","id":146920658,"number":833,"title":"Input Annotation does not work. Parameter information is not displayed.","user":{"login":"AlexandreHagen","id":2535878,"avatar_url":"https://avatars.githubusercontent.com/u/2535878?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexandreHagen","html_url":"https://github.com/AlexandreHagen","followers_url":"https://api.github.com/users/AlexandreHagen/followers","following_url":"https://api.github.com/users/AlexandreHagen/following{/other_user}","gists_url":"https://api.github.com/users/AlexandreHagen/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandreHagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandreHagen/subscriptions","organizations_url":"https://api.github.com/users/AlexandreHagen/orgs","repos_url":"https://api.github.com/users/AlexandreHagen/repos","events_url":"https://api.github.com/users/AlexandreHagen/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandreHagen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-08T12:47:14Z","updated_at":"2016-04-14T13:19:52Z","closed_at":null,"body":"Hi \r\n\r\nI use NelmioApiDocBundle form one year now. I my code I am using input to display parameters in documentation. But from few months it is not working any more for all input set.\r\n\r\nMy annotation: \r\n```\r\n /**\r\n     * Créer une nouvelle décision\r\n     *\r\n     * ### Response ###\r\n     *\r\n     *     {\r\n     *          \"idDecision\": \"Id de la decision créée\",\r\n     *          \"publicUrl\": \"Url si decision public\"\r\n     *     }\r\n     *\r\n     * @ParamConverter(\"space\", options={\"mapping\":{\"space\": \"url\"}})\r\n     *\r\n     * @api\r\n     * @ApiDoc(\r\n     *  resource = true,\r\n     *  description = \"Créer une nouvelle décision\",\r\n     *  input = \"Freedom\\DemophonieBundle\\Form\\DecisionType\\MCD2DecisionType\",\r\n     *  views={\"default\", \"mcd\", \"mcd2\", \"ccd\", \"nyd\", \"ced\", \"fid\", \"public\", \"decision\", \"list\", \"project\"},\r\n     *  requirements = {\r\n     *      {\r\n     *          \"name\" = \"space\",\r\n     *          \"dataType\" = \"string\",\r\n     *          \"requirement\" = \"\\w\",\r\n     *          \"description\" = \"URL de l'espace\"\r\n     *      }\r\n     *  }\r\n     * )\r\n    public function postDecisionAction(Request $request, GeneralSpace $space) \r\n    {\r\n    ...\r\n    }\r\n```\r\n\r\nMy Form : \r\n\r\n```\r\n<?php\r\n\r\nnamespace Freedom\\DemophonieBundle\\Form\\DecisionType;\r\n\r\nuse Freedom\\DemophonieBundle\\Entity\\Decision;\r\nuse Freedom\\DemophonieBundle\\Form\\DecisionType;\r\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CheckboxType;\r\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType;\r\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\IntegerType;\r\nuse Symfony\\Component\\Form\\FormBuilderInterface;\r\n\r\n/**\r\n * Class MCDDecisionType\r\n * @package Freedom\\DemophonieBundle\\Form\\DecisionType\r\n */\r\nclass MCD2DecisionType extends DecisionType\r\n{\r\n\r\n    /**\r\n     * @param FormBuilderInterface $builder\r\n     * @param array                $options\r\n     */\r\n    public function buildForm(FormBuilderInterface $builder, array $options)\r\n    {\r\n        parent::buildForm($builder, $options);\r\n        $builder\r\n\r\n            ->add(\r\n                'rankingListLength',\r\n                IntegerType::class,\r\n                [\r\n                    'empty_data' => '3',\r\n                    'required' => true,\r\n                    'description' => \"Nombre de place N sur le podium ou illimité (0 = illimité, default = 3)\",\r\n                ]\r\n            )\r\n            ->add(\r\n                'allowAddProposition',\r\n                CheckboxType::class,\r\n                [\r\n                    'empty_data' => 'on',\r\n                    'required' => true,\r\n                    'description' => \"Autoriser l'ajout de propositions (Oui = true (default),  Non = false)\",\r\n                ]\r\n            )\r\n            ->add(\r\n                'hideResult',\r\n                CheckboxType::class,\r\n                [\r\n                    'empty_data' => 'on',\r\n                    'required' => true,\r\n                    'description' => \"Afficher le résultat une fois seulement que l'utilisateur a soumis sa 1ere liste (Oui = true (default),  Non = false)\",\r\n                ]\r\n            )\r\n            ->add(\r\n                'condorectMethod',\r\n                ChoiceType::class,\r\n                [\r\n                    'required' => true,\r\n                    'description' => 'Mode de calcul du résultat',\r\n                    'empty_data' => Decision::CONDORECT_RANKED_PAIRS,\r\n                    'choices' => [\r\n                        'Schulze' => Decision::CONDORECT_SCHULZE,\r\n                        'RankedPairs' => Decision::CONDORECT_RANKED_PAIRS,\r\n                    ],\r\n                ]\r\n            )\r\n            ->add(\r\n                'allowAddComment',\r\n                CheckboxType::class,\r\n                [\r\n                    'empty_data' => 'on',\r\n                    'required' => true,\r\n                    'description' => \" Autoriser l'ajout de commentaires pour toutes les propositions(Oui = true (default),  Non = false)\",\r\n                ]\r\n            )\r\n            ->add(\r\n                'allowAddPropositionDocument',\r\n                CheckboxType::class,\r\n                [\r\n                    'empty_data' => 'on',\r\n                    'required' => true,\r\n                    'description' => \" Autoriser l'ajout de documents pour toutes les propositions autre que sont auteur(Oui = true (default),  Non = false)\",\r\n                ]\r\n            )\r\n        ;\r\n    }\r\n}\r\n```\r\nThe result : \r\n![capture d ecran 2016-04-08 a 14 42 33](https://cloud.githubusercontent.com/assets/2535878/14383879/2d66a2ec-fd98-11e5-9606-2dc64a0f90fb.png)\r\n\r\nI'm using Symfony 2.8.4.  Maybe a problem with new syntax form in Symfony 2.8 ?"},"comment":{"url":"https://api.github.com/repos/nelmio/NelmioApiDocBundle/issues/comments/209938031","html_url":"https://github.com/nelmio/NelmioApiDocBundle/issues/833#issuecomment-209938031","issue_url":"https://api.github.com/repos/nelmio/NelmioApiDocBundle/issues/833","id":209938031,"user":{"login":"maxpou","id":6160970,"avatar_url":"https://avatars.githubusercontent.com/u/6160970?v=3","gravatar_id":"","url":"https://api.github.com/users/maxpou","html_url":"https://github.com/maxpou","followers_url":"https://api.github.com/users/maxpou/followers","following_url":"https://api.github.com/users/maxpou/following{/other_user}","gists_url":"https://api.github.com/users/maxpou/gists{/gist_id}","starred_url":"https://api.github.com/users/maxpou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxpou/subscriptions","organizations_url":"https://api.github.com/users/maxpou/orgs","repos_url":"https://api.github.com/users/maxpou/repos","events_url":"https://api.github.com/users/maxpou/events{/privacy}","received_events_url":"https://api.github.com/users/maxpou/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T13:19:52Z","updated_at":"2016-04-14T13:19:52Z","body":"hi,\r\nYour forms still works without NelmioApiDoc Bundle? (e.g. curl, Postman...)\r\nIf 'no', checkout changelogs (Symfony, FOSRestBundle...). I really think that your problem is not related with this bundle.\r\n\r\nThis is my last suggestion:\r\n\r\n```php\r\n//Freedom\\DemophonieBundle\\Form\\DecisionType\\MCD2DecisionType.php\r\n    /**\r\n     * @param FormBuilderInterface $builder\r\n     * @param array $options\r\n     */\r\n    public function buildForm(FormBuilderInterface $builder, array $options)\r\n    {\r\n       //...\r\n    }\r\n\r\n    /**\r\n     * @param OptionsResolver $resolver\r\n     */\r\n    public function configureOptions(OptionsResolver $resolver)\r\n    {\r\n        $resolver->setDefaults(array(\r\n            'data_class'         => 'Freedom\\DemophonieBundle\\Entity\\Decision',\r\n            'csrf_protection'    => false,\r\n            'allow_extra_fields' => true\r\n        ));\r\n    }\r\n\r\n    public function getBlockPrefix()\r\n    {\r\n        return '';\r\n    }\r\n```\r\n"}}