docs icon indicating copy to clipboard operation
docs copied to clipboard

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

Open danielsippel opened this issue 1 year ago • 4 comments

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 avatar Feb 14 '24 16:02 danielsippel

Bildschirmfoto 2024-02-14 um 17 57 11

danielsippel avatar Feb 14 '24 16:02 danielsippel