api-platform / docs

API Platform documentation
https://api-platform.com/docs/
164 stars 1.06k forks source link

Incorrect deprecation warnings: "Since api-platform/core 3.1: The "openapiContext" option is deprecated, use "openapi" instead." #1898

Open danielsippel opened 6 months ago

danielsippel commented 6 months ago

Version: "api-platform/core": "v3.2.13"

As documentated here: https://api-platform.com/docs/core/openapi/#using-the-openapi-and-swagger-contexts we set a lot of custom attributes to openapi/swagger, e.g.

    #[ORM\Column(type: 'string', length: 255)]
    #[ApiProperty(openapiContext: [
        'example' => 'your text here',
    ])]
    private ?string $status;

This produces a lot of warnings in the log (when calling the /api/docs page): User Deprecated: Since api-platform/core 3.1: The "openapiContext" option is deprecated, use "openapi" instead.

Tried to just replace the key 'openapiContext' through 'openapi' -> does not work, fatal..

danielsippel commented 6 months ago
Bildschirmfoto 2024-02-14 um 17 57 11