Guilhem Niot
Guilhem Niot
Have you tried decorating it ? (see https://symfony.com/doc/current/service_container/service_decoration.html) Its tags would be inherited and that should solve your issue
What do you mean by a "blank page"? Is there an exception thrown? or is nothing documented?
The issue is that in the `OA\RequestBody` attribute, the `$ref` parameter comes first in the constructor so this is where the `@Model` is injected. This error message was indeed adapted...
I just submitted https://github.com/nelmio/NelmioApiDocBundle/pull/1747. It is not really a solution to your issue but it should help you understand where the issue comes from. This likely comes from a property...
Not sure what's the issue and I can't dedicate it time to investigate unfortunately, meanwhile you can use `@SWG\Property`, see https://symfony.com/doc/current/bundles/NelmioApiDocBundle/index.html#general-php-objects.
You may try using the recent `@Ignore` annotation (and it's equivalent in yaml/xml), see https://symfony.com/doc/current/components/serializer.html#option-1-using-ignore-annotation. We could also consider adding support of the `AbstractNormalizer::IGNORED_ATTRIBUTES` context field in the `@Model` annotation...
> Is there a way to debug on what property in which class it is failing? We could add the class hierarchy to the error, that would be quite interesting...
I guess that's because we don't know if your default value was manually set or not (`null` is the default value of php).
I agree. WDYT @lsmith77 @xabbuh ?
@xabbuh in fact it was introduced by @Seldaek [here](https://github.com/FriendsOfSymfony/FOSRestBundle/commit/acd557018ef708205a9d9e1bafaa4134f3c431a0#diff-cbcb81f3d1ed1c502df6c810c36b8b00R109).