Php 更新composer后,Nelmio Api文档中的组排除不起作用
我将参数设置为数组,如中所述 在@ApiDoc中我定义Php 更新composer后,Nelmio Api文档中的组排除不起作用,php,symfony,doctrine-orm,nelmioapidocbundle,Php,Symfony,Doctrine Orm,Nelmioapidocbundle,我将参数设置为数组,如中所述 在@ApiDoc中我定义 * input={ * "class" = "Rest\BeautyBundle\Entity\Fixture\ProfileQuestionAnswer", * "groups"={"QuestionAnswer", "get_option"}, * }, 在更新之前,它工作得很好。但是在composer更新之后只有“QuestionAnswer”组名起作用,它显示Ques
* input={
* "class" = "Rest\BeautyBundle\Entity\Fixture\ProfileQuestionAnswer",
* "groups"={"QuestionAnswer", "get_option"},
* },
在更新之前,它工作得很好。但是在composer更新之后
只有“QuestionAnswer”组名起作用,它显示QuestionOptions类的所有属性。
我如何才能像更新之前那样提交数组中的属性?哇,真奇怪。我过去也遇到过类似的事情,这似乎是API的问题。在代码端,美国开发人员无能为力。也没有人找到解决方法或修复方法 似乎这两个库都有漏洞。您应该转到github上的NelmioApiDoc并报告。尝试使用
composer安装
而不是composer更新
。您还可以将composer.json更改为此库的早期版本?
class QuestionOptions
{
/**
* @JMS\Type("integer")
* @Groups({"get_option"})
*/
public $question_option_id ;
/**
* @JMS\Type("string")
* @Groups({"post_option"})
*/
public $question_option_description;
}
* input={
* "class" = "Rest\BeautyBundle\Entity\Fixture\ProfileQuestionAnswer",
* "groups"={"QuestionAnswer", "get_option"},
* },