Skip to content

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

Open
@danielsippel

Description

@danielsippel

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..

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions