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
@OA\Items() is required when @OA\Property #2240
Comments
As the message suggest, you need to add a * @OA\Property(
* property="translations"
* type="array",
* @OA\Items()
* ) |
As I said, there no documentation wrote, the |
Do you have some more context?
This warning is thrown inside the underlying swagger-php: |
This warning came after installation and initialization of nelmio bundle, no more. |
This bundle should automatically add the NelmioApiDocBundle/src/PropertyDescriber/ArrayPropertyDescriber.php Lines 27 to 29 in 124c182
Could you try and find the class inside your codebase which has a "translations" property public array $translations; That class should probably contain more information about why it does not add the |
This is the problem, there is no var called translations in our project, I really don't know from where this error can come. |
You could try dumping |
I got this error after installation, without any documentation wrote in api.
Route file is ok,
security file is ok.
User Warning: @OA\Items() is required when @OA\Property(property="translations") has type "array" in
The text was updated successfully, but these errors were encountered: