New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with Model Attribute #2237
Comments
Could you perhaps try dumping This should not be happening so I'm quite curious about what value is being passed on your end. |
Hello @DjordyKoert i'm a colleague of @AdrienBr , here's the dump you asked for : The
Thanks |
@DjordyKoert there's still a problem despite your fix : {"type":"https:\/\/tools.ietf.org\/html\/rfc2616#section-10","title":"An error occurred","status":500,"detail":"Attempted to call an undefined method named \"supports\" of class \"Symfony\\Component\\DependencyInjection\\Argument\\RewindableGenerator\"."} I think the ObjectModelDescriber's |
Just to be curious, may I ask if you are manually defining the |
Done, could you check again? :) |
@DjordyKoert yes we do manually defining the service : Nelmio\ApiDocBundle\ModelDescriber\ObjectModelDescriber:
arguments:
$mediaTypes: [ ]
$propertyDescribers: !tagged_iterator nelmio_api_doc.object_model.property_describer
$nameConverter: '@serializer.name_converter.camel_case_to_snake_case'
tags: [ nelmio_api_doc.model_describer ] I checked again, and this time everything worked fine. Thanks |
Hello,
Symfony version : 5.4
Bundle version : 4.22.1
When I use this attribute :
I get this error :
Is there anything wrong with my usage of OA attribute ?
Thanks
The text was updated successfully, but these errors were encountered: